From e7ebcabc81502db2b18ddf5ec568bc2b0d364973 Mon Sep 17 00:00:00 2001 From: tianya Date: Thu, 1 Jun 2023 00:16:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=B1=BB=E4=BF=A1=E6=81=AF=E8=81=94?= =?UTF-8?q?=E5=8A=A8=E9=94=99=E8=AF=AF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/templets/catalog_add.htm | 6 +++--- src/admin/templets/catalog_edit.htm | 6 +++--- src/system/taglib/infolink.lib.php | 5 ++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/admin/templets/catalog_add.htm b/src/admin/templets/catalog_add.htm index 98c46e84..e89221ef 100644 --- a/src/admin/templets/catalog_add.htm +++ b/src/admin/templets/catalog_add.htm @@ -58,16 +58,16 @@
Execute('s',$sql); while($arr = $dsql->GetArray('s')) { @@ -61,9 +61,9 @@ if ($arr['evalue']%500==0) { echo ""; } else if (preg_match("#\.#", $arr['evalue'])) { - echo ""; + echo ""; } else { - echo ""; + echo ""; } } ?> diff --git a/src/system/taglib/infolink.lib.php b/src/system/taglib/infolink.lib.php index 242ad565..8825c75e 100755 --- a/src/system/taglib/infolink.lib.php +++ b/src/system/taglib/infolink.lib.php @@ -114,9 +114,9 @@ function lib_infolink(&$ctag, &$refObj) } } //小分类链接 - if (empty($infotype) || is_array($smalltypes)) { + if (empty($infotype) || !is_array($smalltypes)) { foreach ($em_infotypes as $eid => $em) { - if (!is_array($smalltypes) && $eid % 500 != 0) continue; + if (!is_array($smalltypes) || $eid % 500 != 0) continue; if (is_array($smalltypes) && !in_array($eid, $smalltypes)) continue; if ($eid == $infotype) { $fields['infotype'] .= " {$em}\r\n"; @@ -128,7 +128,6 @@ function lib_infolink(&$ctag, &$refObj) $sontype = (($infotype % 500 != 0) ? $infotype : 0); $toptype = (($infotype % 500 == 0) ? (int)$infotype : (int)($infotype - ($infotype % 500))); $fields['infotype'] = "{$em_infotypes[$toptype]} - "; - if ($infotype % 500 == 0) { //1级分类 foreach ($em_infotypes as $eid => $em) {