fix error

This commit is contained in:
wlx 2014-06-11 03:02:19 +00:00
parent 0848fcb69b
commit fc2a1ac56e
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class Admin_NewsController extends Zend_Controller_Action
left join ".$News->tbl_catalog." ct on ct.aid=n.id
left join ".$News->tbl_categorys." c on c.id = ct.cid
LEFT JOIN users u ON n.userid=u.id
WHERE c.id='$type' AND n.title IS NOT NULL and n.sub='$this->view->config->sub->news' order by n.ts_created desc";
WHERE c.id='$type' AND n.title IS NOT NULL and n.sub='".$this->view->config->sub->news."' order by n.ts_created desc";
}else
{
$sql = "select