From 1e4e59bb5750a1b7f4a8458e0d8b6b2a34e5edeb Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 8 Dec 2023 18:02:54 +0100 Subject: if it is not an array do not attempt count() --- include/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/taxonomy.php') 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)) -- cgit v1.2.3