This commit is contained in:
Shish 2023-06-25 21:35:53 +00:00
parent 6fb9b66e45
commit 284b7313cc

View file

@ -98,7 +98,7 @@ class Tag
// don't cache in unit tests, because the test suite doesn't
// reset static variables but it does reset the database
if(!UNITTEST && array_key_exists($tag, self::$tag_id_cache)) {
if(!defined("UNITTEST") && array_key_exists($tag, self::$tag_id_cache)) {
return self::$tag_id_cache[$tag];
}