From beb6e2778b06011df5ab70a79d6db53a31449d6a Mon Sep 17 00:00:00 2001
From: klarkxy <278370456@qq.com>
Date: Thu, 1 May 2025 17:13:49 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E8=89=B2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/template/syzoj/category.php | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/web/template/syzoj/category.php b/web/template/syzoj/category.php
index aaba7bb..b391eb3 100644
--- a/web/template/syzoj/category.php
+++ b/web/template/syzoj/category.php
@@ -30,10 +30,13 @@
$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 (!$result || $result[0]['cnt'] <= 0) continue; // Skip tags with no active problems
+ if (isset($_SESSION[$OJ_NAME . '_' . 'administrator']))
+ $label_theme = "danger";
+ else if (!$result || $result[0]['cnt'] <= 0) continue; // Skip tags with no active problems
+ if ($label_theme == "") $label_theme = "default";
?>
-
+