Sfoglia il codice sorgente

Update arclist.lib.php

tags/6.2.8
叙述、别离 1 anno fa
parent
commit
fe82796d82
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. +1
    -3
      src/system/taglib/arclist.lib.php

+ 1
- 3
src/system/taglib/arclist.lib.php Vedi File

@@ -229,8 +229,6 @@ function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlele
if (!empty($notypeid)) { if (!empty($notypeid)) {
$orwheres[] = "and arc.typeid NOT IN (".GetSonIds($notypeid).")"; $orwheres[] = "and arc.typeid NOT IN (".GetSonIds($notypeid).")";
} }
//由于这个条件会导致缓存功能失去意义,因此取消
//if ($arcid!=0) $orwheres[] = " arc.id<>'$arcid' ";
} }
//文档排序的方式 //文档排序的方式
$ordersql = ''; $ordersql = '';
@@ -258,7 +256,7 @@ function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlele
$orwhere = preg_replace("#^ And#is", '', $orwhere); $orwhere = preg_replace("#^ And#is", '', $orwhere);
$orwhere = preg_replace("#And[ ]{1,}And#is", 'And ', $orwhere); $orwhere = preg_replace("#And[ ]{1,}And#is", 'And ', $orwhere);
} }
if ($orwhere != '') $orwhere = " WHERE $orwhere and tp.ishidden != 1 ";
if ($orwhere != '') $orwhere = "WHERE $orwhere and tp.ishidden != 1";
//获取附加表信息 //获取附加表信息
$addfield = trim($ctag->GetAtt('addfields')); $addfield = trim($ctag->GetAtt('addfields'));
$addfieldsSql = ''; $addfieldsSql = '';


Loading…
Annulla
Salva