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) {