From df166ae7ed96da3eadf31b156678caa43872a87e Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 23 Dec 2011 03:53:08 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=BB=98=E8=AE=A4=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E6=8C=89=E6=9C=80=E6=96=B0=E5=B9=B4=E4=BB=BD=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/StatController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/admin/controllers/StatController.php b/application/admin/controllers/StatController.php index d3fa5b4a..a3aedf17 100644 --- a/application/admin/controllers/StatController.php +++ b/application/admin/controllers/StatController.php @@ -50,9 +50,9 @@ class Admin_StatController extends Zend_Controller_Action function unitAction() { - $y = $this->_request->getParam('y'); + $y = (int)$this->_request->getParam('y'); - if(!empty($y)||!is_numeric($y)) + if(!empty($y)) { $n = date("Y",time()); if($y<2004 || $y>$n) @@ -94,9 +94,9 @@ class Admin_StatController extends Zend_Controller_Action function monthAction(){ - $y = $this->_request->getParam('y'); + $y = (int)$this->_request->getParam('y'); - if(!empty($y)||!is_numeric($y)) + if(!empty($y)) { $n = date("Y",time()); if($y<2004 || $y>$n)