fix: [php] Support for PHP 7.2

pull/8208/head
Jakub Onderka 2022-03-15 09:59:06 +01:00
parent 3c8d07ca75
commit b69c2c4918
2 changed files with 3 additions and 5 deletions

View File

@ -51,7 +51,7 @@
h($cluster['GalaxyCluster']['value']),
$baseurl . '/galaxy_clusters/view/' . h($cluster['GalaxyCluster']['id']),
strlen(h($cluster['GalaxyCluster']['description'])) > 300 ?
(substr(h($cluster['GalaxyCluster']['description']), 0, 300) . '...') : h($cluster['GalaxyCluster']['description']),
(substr(h($cluster['GalaxyCluster']['description']), 0, 300) . '...') : h($cluster['GalaxyCluster']['description'])
);
}
}

View File

@ -59,7 +59,7 @@
$baseurl . '/galaxy_clusters/view/' . h($cluster['GalaxyCluster']['id']),
h($cluster['GalaxyCluster']['value']),
strlen(h($cluster['GalaxyCluster']['description'])) > 300 ?
(substr(h($cluster['GalaxyCluster']['description']), 0, 300) . '...') : h($cluster['GalaxyCluster']['description']),
(substr(h($cluster['GalaxyCluster']['description']), 0, 300) . '...') : h($cluster['GalaxyCluster']['description'])
);
}
$htmlClusters .= '</ul>';
@ -70,8 +70,6 @@
<h2><?= __('Mitre ATT&CK Matrix') ?></h2>
<div id="attackmatrix_div" style="position: relative; border: solid 1px;" class="statistics_attack_matrix">
<?php
echo $this->element('view_galaxy_matrix', $attackData);
?>
<?= $this->element('view_galaxy_matrix', $attackData); ?>
</div>
</div>