diff --git a/application/admin/controllers/NewsController.php b/application/admin/controllers/NewsController.php index 10e7819f..c84d1049 100644 --- a/application/admin/controllers/NewsController.php +++ b/application/admin/controllers/NewsController.php @@ -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