This commit is contained in:
Shish 2023-06-25 15:12:32 +00:00
parent 33f32f7b22
commit f9af363664

View file

@ -95,7 +95,7 @@ class Tag
public static function get_or_create_id(string $tag): int
{
global $database;
if(in_array($tag, self::$tag_id_cache)) {
if(array_key_exists($tag, self::$tag_id_cache)) {
return self::$tag_id_cache[$tag];
}