CC-3104: Timezone issues in the widget

Added is_numeric check
This commit is contained in:
Yuchen Wang 2011-11-24 17:08:52 -05:00
parent cd1e55bffc
commit 370d6e1fba
1 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ class ApiController extends Zend_Controller_Action
/**
* Retrieve the currently playing show as well as upcoming shows.
* Number of shows returned and the time interval in which to
* get the next shows can be configured as post parameters.
* get the next shows can be configured as GET parameters.
*
* TODO: in the future, make interval length a parameter instead of hardcode to 48
*
@ -206,7 +206,7 @@ class ApiController extends Zend_Controller_Action
}
$limit = $request->getParam('limit');
if($limit == "") {
if($limit == "" || !is_numeric($limit)) {
$limit = "5";
}