From df11c8bdcefc213641e78abb934a94c1418efd3f Mon Sep 17 00:00:00 2001 From: wlx Date: Sat, 1 Dec 2012 13:29:22 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E9=97=BB=E9=A6=96=E9=A1=B5=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=96=B0=E9=97=BB=E5=A4=A7=E7=B1=BB=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/NewsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/default/controllers/NewsController.php b/application/default/controllers/NewsController.php index c2ea8100..20ffde1e 100644 --- a/application/default/controllers/NewsController.php +++ b/application/default/controllers/NewsController.php @@ -19,7 +19,7 @@ class NewsController extends Zend_Controller_Action $time = date("Y-m-d H:i:s",time()); - $sql = "SELECT id,title,code FROM ".$News->tbl_categorys.""; + $sql = "SELECT id,title,code FROM ".$News->tbl_categorys." where ptype='news'"; $sth = $this->db->query($sql); $rows = $sth->fetchAll();