From f97b5ddbd28bc753cbb14d482b19b99ff99acb9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= Date: Thu, 27 Jun 2024 15:26:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/tags_main.php | 2 +- src/admin/templets/freelist_main.htm | 2 +- src/admin/templets/search_keywords_main.htm | 2 +- src/system/datalistcp.class.php | 2 +- src/system/helpers/filter.helper.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/admin/tags_main.php b/src/admin/tags_main.php index 3091fcd7..a2354270 100644 --- a/src/admin/tags_main.php +++ b/src/admin/tags_main.php @@ -16,7 +16,7 @@ if (empty($tag)) $tag = ''; if (empty($action)) { $orderby = empty($orderby) ? 'id' : preg_replace("#[^a-z]#i", '', $orderby); $orderway = isset($orderway) && $orderway == 'asc' ? 'asc' : 'desc'; - if (!empty($tag)) $where = " where tag like '%$tag%'"; + if (!empty($tag)) $where = " WHERE tag like '%$tag%'"; else $where = ''; $neworderway = ($orderway == 'desc' ? 'asc' : 'desc'); $query = "SELECT * FROM `#@__tagindex` $where ORDER BY $orderby $orderway"; diff --git a/src/admin/templets/freelist_main.htm b/src/admin/templets/freelist_main.htm index 6dff4490..30b7d45c 100644 --- a/src/admin/templets/freelist_main.htm +++ b/src/admin/templets/freelist_main.htm @@ -69,7 +69,7 @@ var ahtml = "