From b6057dd0a15c32440c6597f203c372af0f42b4bd Mon Sep 17 00:00:00 2001 From: wlx Date: Thu, 5 Feb 2015 02:55:13 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=85=A8=E9=83=A8=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E7=9A=84=E6=95=B0=E6=8D=AE=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/DataController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index b6183069..c74e7b2d 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -192,11 +192,11 @@ class DataController extends Zend_Controller_Action if (empty($page)) $page=1; $limit=10; $offset=$limit*($page-1); - $state=$this->db->query('select count(*) from metadata'); + $state=$this->db->query('select count(*) from normalmetadata'); $row=$state->fetchAll(); $sum=$row[0]['count']; $select=$this->db->select(); - $select->from('metadata','*')->order('id desc')->limitPage($page,$limit); + $select->from('normalmetadata','*')->order('id desc')->limitPage($page,$limit); $this->view->metadata = $this->db->fetchAll($select); $this->view->page=new Pagination($sum,$page,$limit); }