修复离线数据总数的错误。

This commit is contained in:
wlx 2009-11-19 09:03:42 +00:00
parent df344a6cc5
commit 754df3512a
1 changed files with 1 additions and 1 deletions

View File

@ -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'];