argh php
This commit is contained in:
parent
33f32f7b22
commit
f9af363664
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ class Tag
|
||||||
public static function get_or_create_id(string $tag): int
|
public static function get_or_create_id(string $tag): int
|
||||||
{
|
{
|
||||||
global $database;
|
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];
|
return self::$tag_id_cache[$tag];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue