diff --git a/application/default/controllers/IndexController.php b/application/default/controllers/IndexController.php index 5a4b7faa..1bec4e03 100755 --- a/application/default/controllers/IndexController.php +++ b/application/default/controllers/IndexController.php @@ -10,7 +10,7 @@ class IndexController extends Zend_Controller_Action $name=basename($this->view->newsletter,'.pdf'); list(,$this->view->newsletterno)=explode("_",$name); //统计数据 - $sql='select (select count(*) from users) as usernum,(select count(*) from metadata) as metanum,(select count(*) from offlineapp) as offlinenum'; + $sql='select (select count(*) from users) as usernum,(select count(*) from metadata) as metanum,(select count(*) from offlineapp where ts_approved is not null ) as offlinenum'; $row=$this->db->fetchRow($sql); $this->view->usernum=$row['usernum']; $this->view->metanum=$row['metanum'];