修复相关文献错误,zf升级导致默认返回对象为数组
This commit is contained in:
parent
0028d7c4f2
commit
7a67f4d24c
|
@ -608,9 +608,9 @@ class DataController extends Zend_Controller_Action
|
|||
$sql="select * from knl_article where ";
|
||||
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";
|
||||
|
|
Loading…
Reference in New Issue