From b99aa2411c07b43893abae365d18e3bf8e4fc9ef Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Thu, 1 May 2025 17:11:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=BB=9A=EF=BC=8C=E5=B0=B1=E8=BF=99?= =?UTF-8?q?=E6=A0=B7=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/template/syzoj/category.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/web/template/syzoj/category.php b/web/template/syzoj/category.php index 12b8885..aaba7bb 100644 --- a/web/template/syzoj/category.php +++ b/web/template/syzoj/category.php @@ -30,15 +30,10 @@ $sql = "SELECT count(*) as cnt FROM `problem` WHERE defunct='N' AND (title LIKE ? OR source LIKE ?)"; $tag_search = "%" . $tag . "%"; $result = pdo_query($sql, $tag_search, $tag_search); - if (isset($_SESSION[$OJ_NAME . '_' . 'administrator'])) - $label_theme = "danger"; - else if (!$result || $result[0]['cnt'] <= 0) continue; // Skip tags with no active problems + if (!$result || $result[0]['cnt'] <= 0) continue; // Skip tags with no active problems - // Choose a random color theme for the tag - $hash_num = hexdec(substr(md5($tag), 0, 7)); - if ($label_theme == "") $label_theme = "default"; ?> - +