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); }