arclist 标记中加入关键字属性 模板解析出错

dedecms织梦arclist 标记加入关键字属性 模板解析出错

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’ ";

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/703a8457c062268b773ef1464dac4c6a.html