rclist 标记中使用要害字属性时,模板解析出错。
打开 include/inc/inc_fun_SpGetArcList.php
找到
//要害字条件
if($keyword!="")
{
$keywords = explode(",",$keyword);
$ridnum = count($keywords);
$rstr = trim($keywords[0]);
if($ridnum>4) $ridnum = 4;
for($i=0;$i<$ridnum;$i ){
$keywords[$i] = trim($keywords[$i]);
if($keywords[$i]!="") $rstr .= "|".$keywords[$i];
}
if($rstr!="") $orwhere = " And CONCAT(arc.title,arc.keywords) REGEXP ‘$rstr’ ";
unset($keywords);
}
改为
//要害字条件
if($keyword!="")
{
$keywords = explode(",",$keyword);
$ridnum = count($keywords);
$rstr = trim($keywords[0]);
if($ridnum>4) $ridnum = 4;
for($i=0;$i<$ridnum;$i ){
$keywords[$i] = trim($keywords[$i]);
if($keywords[$i]!="") $rstr .= "|".$keywords[$i];
}
if($rstr!="") $orwhere .= " And CONCAT(arc.title,arc.keywords) REGEXP ‘$rstr’ ";
unset($keywords);
}
如果本文对你有帮助,欢迎打赏本站