From 717ef7e8e4a9760dc0740cabcca509d331f4114e Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 20 Aug 2025 14:32:53 +0300 Subject: [PATCH] Update functions.php --- library/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/includes/functions.php b/library/includes/functions.php index 7e7f2f26d..26b28d149 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -1621,7 +1621,7 @@ function forum_exists($forum_id = null): bool function cat_exists($cat_id): bool { - return (bool)DB()->fetch_row("SELECT cat_id FROM " . BB_CATEGORIES . " WHERE cat_id = $cat_id LIMIT 1"); + return (bool)DB()->fetch_row("SELECT 1 FROM " . BB_CATEGORIES . " WHERE cat_id = $cat_id LIMIT 1"); } function get_topic_icon($topic, $is_unread = null)