mirror of https://github.com/MISP/MISP
Slight change to the histogram
Data for types that had "|" or "-" in the name (such as ip-src) were omitted - should be fixed nowpull/63/head
parent
c6bdf794c1
commit
1bf1e6f2a8
|
@ -378,15 +378,16 @@ class UsersController extends AppController {
|
|||
// Nice graphical histogram
|
||||
$this->loadModel('Attribute');
|
||||
$sigTypes = array_keys($this->Attribute->typeDefinitions);
|
||||
|
||||
$replace = array('-', '|');
|
||||
$graphFields = '';
|
||||
foreach ($sigTypes as &$sigType) {
|
||||
if ($graphFields != "") $graphFields .= ", ";
|
||||
$graphFields .= "'" . $sigType . "'";
|
||||
}
|
||||
$graphFields = str_replace($replace, "_", $graphFields);
|
||||
$this->set('graphFields', $graphFields);
|
||||
|
||||
$replace = array('-', '|');
|
||||
|
||||
$graphData = array();
|
||||
$prevRowOrg = "";
|
||||
$i = -1;
|
||||
|
|
Loading…
Reference in New Issue