mirror of https://github.com/MISP/MISP
fix: [internal] Handle tags passed via parameters not encapsulated in an array
parent
4b67140c62
commit
ce8ee288ab
|
@ -196,6 +196,9 @@ class Tag extends AppModel
|
|||
{
|
||||
$ids = array();
|
||||
$tag_ids = array();
|
||||
if (!is_array($array)) {
|
||||
$array = array($array);
|
||||
}
|
||||
foreach ($array as $k => $tag) {
|
||||
if (is_numeric($tag)) {
|
||||
$tag_ids[] = $tag;
|
||||
|
|
Loading…
Reference in New Issue