Fixed an issue where orgs without a logo would not have the placeholder logo shown on graphs

pull/762/head
iglocska 2015-10-19 00:23:29 +02:00
parent e63d10f0d4
commit 593f166386
1 changed files with 2 additions and 2 deletions

View File

@ -3356,7 +3356,7 @@ class EventsController extends AppController {
$current_event_id = $old_event;
} else {
if (!$this->__orgImgExists($event[0]['Orgc']['name'])) $image = '/img/orgs/' . 'MISP.png';
else $image = '/img/orgs/' . $event[0]['Orgc']['name'] . '.png';
else $image = '/img/orgs/MISP.png';
$json['nodes'][] = array(
'name' => 'Event ' . $id,
'type' => 'event',
@ -3401,7 +3401,7 @@ class EventsController extends AppController {
$current_relation_id = $this->__graphJsonContains('event', $relation, $json);
if ($current_relation_id === false) {
if (!$this->__orgImgExists($relatedEvents[$relation['id']]['Orgc']['name'])) $image = '/img/orgs/MISP.png';
else $image = '/img/orgs/' . $relatedEvents[$relation['id']]['Orgc']['name'] . '.png';
else $image = '/img/orgs/MISP.png';
$json['nodes'][] = array(
'name' => 'Event ' . $relation['id'],
'type' => 'event', 'id' => $relation['id'],