mirror of https://github.com/MISP/MISP
fix: [API] fixed an invalid dissection of the tag parameter if the parameter is not set
parent
c680f0aff5
commit
a3f83fac63
|
@ -2453,6 +2453,9 @@ class Attribute extends AppModel
|
|||
// array 1 will have all of the non negated terms and array 2 all the negated terms
|
||||
public function dissectArgs($args)
|
||||
{
|
||||
if (empty($args)) {
|
||||
return array(0 => array(), 1 => array());
|
||||
}
|
||||
if (!is_array($args)) {
|
||||
$args = explode('&&', $args);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue