aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-05-12 13:28:04 +0200
committerMario Vavti <mario@mariovavti.com>2018-05-12 13:28:04 +0200
commitefb0ac599613129ff514d3a5a7c3b90ff2522654 (patch)
treec1c2638da0327c3fbcdeb79ed9232d7f6f1f61cd
parent2c819c8619eec9daa1843da9d9b8bcb2a69c2384 (diff)
downloadvolse-hubzilla-efb0ac599613129ff514d3a5a7c3b90ff2522654.tar.gz
volse-hubzilla-efb0ac599613129ff514d3a5a7c3b90ff2522654.tar.bz2
volse-hubzilla-efb0ac599613129ff514d3a5a7c3b90ff2522654.zip
fix php warning
-rw-r--r--Zotlabs/Lib/MessageFilter.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/MessageFilter.php b/Zotlabs/Lib/MessageFilter.php
index df59aa57e..eb0fc3d2c 100644
--- a/Zotlabs/Lib/MessageFilter.php
+++ b/Zotlabs/Lib/MessageFilter.php
@@ -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 {
}
-} \ No newline at end of file
+}