POST TIME:2018-10-30 21:58
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);
}