From 284b7313cc2e13094ecf1df37734b73fb2b5c2a3 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 25 Jun 2023 21:35:53 +0000 Subject: [PATCH] ... --- core/imageboard/tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/imageboard/tag.php b/core/imageboard/tag.php index 44ebdef0..db251823 100644 --- a/core/imageboard/tag.php +++ b/core/imageboard/tag.php @@ -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]; }