remove quote, which is twiced used
This commit is contained in:
parent
1152e4a86d
commit
0fd88b944f
|
@ -116,7 +116,7 @@ class ServiceController extends Zend_Controller_Action
|
|||
if (!empty($key)) {
|
||||
$sql.= " and (title ilike ? or description ilike ?)";
|
||||
$sql.= " order by title";
|
||||
$rows=$this->db->fetchAll($sql,array($e,$w,$n,$s,$this->db->quote('%'.$key.'%'),$this->db->quote('%'.$key.'%')));
|
||||
$rows=$this->db->fetchAll($sql,array($e,$w,$n,$s,'%'.$key.'%','%'.$key.'%'));
|
||||
} else {
|
||||
$sql.= " order by title limit 10";
|
||||
$rows=$this->db->fetchAll($sql,array($e,$w,$n,$s));
|
||||
|
@ -1212,4 +1212,4 @@ class ServiceController extends Zend_Controller_Action
|
|||
echo '</ul>';
|
||||
echo $pagnation;
|
||||
}//文档页面相关数据
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue