Skip to content

Commit

Permalink
Update inc/tag.class.php
Browse files Browse the repository at this point in the history
Co-authored-by: Romain B. <[email protected]>
  • Loading branch information
tsmr and Rom1-B authored Dec 20, 2024
1 parent 916fa6c commit 6341d18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inc/tag.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [])
Expand Down

0 comments on commit 6341d18

Please sign in to comment.