diff --git a/inc/tag.class.php b/inc/tag.class.php index 3c59f29..cb811ba 100644 --- a/inc/tag.class.php +++ b/inc/tag.class.php @@ -85,7 +85,10 @@ public static function canItemtype($itemtype = '') $use_global_tag = true; } } - return !empty($itemtype) && class_exists($itemtype) && !in_array($itemtype, self::getBlacklistItemtype()) && ($use_global_tag == true ? $use_global_tag : in_array($itemtype, $types_menu)); + return !empty($itemtype) && + class_exists($itemtype) && + !in_array($itemtype, self::getBlacklistItemtype()) && + ($use_global_tag || in_array($itemtype, $types_menu)); } public function showForm($ID, $options = [])