fix: [API] fixed an invalid dissection of the tag parameter if the parameter is not set

pull/3725/head
iglocska 2018-09-10 14:31:55 +02:00
parent c680f0aff5
commit a3f83fac63
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}