From 30dfb3d37b5cdc9f69abde22428071590f958eee Mon Sep 17 00:00:00 2001 From: liheng Date: Thu, 26 Jul 2018 11:26:26 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81news=20category.id=20in(4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/IndexController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/default/controllers/IndexController.php b/application/default/controllers/IndexController.php index 7ad63158..135c8ea9 100755 --- a/application/default/controllers/IndexController.php +++ b/application/default/controllers/IndexController.php @@ -64,7 +64,7 @@ class IndexController extends Zend_Controller_Action $this->view->news = $rows; //$time = date("Y-m-d H:i:s",time()); - $sql = "SELECT * FROM archive WHERE is_pub=true AND ts_publisheddb->query($sql); $rows = $sth->fetchAll(PDO::FETCH_BOTH);