fix error

This commit is contained in:
wlx 2014-06-11 07:36:20 +00:00
parent e24d2472b6
commit 0b9de786bb
1 changed files with 1 additions and 1 deletions

View File

@ -1145,7 +1145,7 @@ class Admin_DownController extends Zend_Controller_Action
$select=$this->db->select(); $select=$this->db->select();
$select->from('dataorder as o','count(o.id) as num') $select->from('dataorder as o','count(o.id) as num')
->join($submd.' as m', 'o.uuid = m.uuid', array('title','uuid')) ->join($submd.' as m', 'o.uuid = m.uuid', array('title','uuid'))
->where('o.uuid = m.uuid and (o.status=0 or o.status=5)') ->where('o.uuid = m.uuid and (o.status=0 or o.status=5)');
if(!empty($search) && !empty($keyword)) if(!empty($search) && !empty($keyword))
{ {
$select ->Where('m.title like ? or m.title_en like ?','%'.$keyword.'%'); $select ->Where('m.title like ? or m.title_en like ?','%'.$keyword.'%');