From fc2a1ac56e9d064e6351939738483b9ede52c849 Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 11 Jun 2014 03:02:19 +0000 Subject: [PATCH] fix error --- application/admin/controllers/NewsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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