From 2c483c460a2d5c806b9e62097673ad237e6b154a Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 23 Mar 2023 20:11:18 +0000 Subject: initial check in to allow all mentions option --- include/taxonomy.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include/taxonomy.php') diff --git a/include/taxonomy.php b/include/taxonomy.php index 671f96c2e..3f6db50d1 100644 --- a/include/taxonomy.php +++ b/include/taxonomy.php @@ -119,13 +119,14 @@ function store_item_tag($uid,$iid,$otype,$type,$term,$url = '') { } -function get_terms_oftype($arr,$type) { - $ret = array(); - if(! (is_array($arr) && count($arr))) +function get_terms_oftype($arr, $type) { + $ret = []; + + if(!is_array($arr) && count($arr)) return $ret; if(! is_array($type)) - $type = array($type); + $type = [$type]; foreach($type as $t) foreach($arr as $x) -- cgit v1.2.3