chg: [genericElement] Allow default organisation to be used as a picture

- The default MISP organisation uses the MISP logo
pull/6120/head
mokaddem 2020-07-31 15:25:27 +02:00
parent 4fc8d9d22d
commit 7a6ce50fd2
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
foreach ($orgs as $org) {
$i++;
if (!empty($org['id']) || !empty($org['name'])) {
if ($field['fields']['allow_picture'] && !empty($org['id'])) {
if ($field['fields']['allow_picture']) {
echo $this->OrgImg->getOrgImg(array('name' => $org['name'], 'id' => $org['id'], 'size' => 24));
} else {
echo sprintf(