fix php warning

This commit is contained in:
Mario Vavti 2018-05-12 13:28:04 +02:00
parent 2c819c8619
commit efb0ac5996

View File

@ -23,7 +23,7 @@ class MessageFilter {
$lang = detect_language($text);
}
$tags = ((count($item['term'])) ? $item['term'] : false);
$tags = ((is_array($item['term']) && count($item['term'])) ? $item['term'] : false);
// exclude always has priority
@ -76,4 +76,4 @@ class MessageFilter {
}
}
}