diff --git a/application/default/controllers/ServiceController.php b/application/default/controllers/ServiceController.php index bffbc7cd..f478cdb8 100644 --- a/application/default/controllers/ServiceController.php +++ b/application/default/controllers/ServiceController.php @@ -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 ''; echo $pagnation; }//文档页面相关数据 -} \ No newline at end of file +}