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)