修复相关文献错误,zf升级导致默认返回对象为数组

This commit is contained in:
wlx 2010-12-09 04:53:59 +00:00
parent 0028d7c4f2
commit 7a67f4d24c
1 changed files with 2 additions and 2 deletions

View File

@ -608,9 +608,9 @@ class DataController extends Zend_Controller_Action
$sql="select * from knl_article where "; $sql="select * from knl_article where ";
foreach($this->view->keys as $k) foreach($this->view->keys as $k)
{ {
if ($k->keytype=='theme') if ($k["keytype"]=='theme')
{ {
$sql.=" title like '%".$k->keyword."%' or "; $sql.=" title like '%".$k["keyword"]."%' or ";
} }
} }
$sql.=" 1<>1 limit 10"; $sql.=" 1<>1 limit 10";