From 7f1b0306e5ccdcedf3f857d4e0617657dc953ab2 Mon Sep 17 00:00:00 2001 From: liheng Date: Thu, 26 Jul 2018 11:22:36 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81news=20category.id=20in(1)?= 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 d8faad3e..7ad63158 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);