aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2023-12-08 18:02:54 +0100
committerMario Vavti <mario@mariovavti.com>2023-12-08 18:02:54 +0100
commit1e4e59bb5750a1b7f4a8458e0d8b6b2a34e5edeb (patch)
tree98e8eb2168fcc86e173f4b2a78cd5ebf409f02d1
parentf175712d4bca0e43a3426c63b257f52826cbb17a (diff)
downloadvolse-hubzilla-1e4e59bb5750a1b7f4a8458e0d8b6b2a34e5edeb.tar.gz
volse-hubzilla-1e4e59bb5750a1b7f4a8458e0d8b6b2a34e5edeb.tar.bz2
volse-hubzilla-1e4e59bb5750a1b7f4a8458e0d8b6b2a34e5edeb.zip
if it is not an array do not attempt count()
-rw-r--r--include/taxonomy.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php
index 3f6db50d1..cfec8414a 100644
--- a/include/taxonomy.php
+++ b/include/taxonomy.php
@@ -122,7 +122,7 @@ function store_item_tag($uid,$iid,$otype,$type,$term,$url = '') {
function get_terms_oftype($arr, $type) {
$ret = [];
- if(!is_array($arr) && count($arr))
+ if(!is_array($arr))
return $ret;
if(! is_array($type))