CC-3104: Timezone issues in the widget
Added is_numeric check
This commit is contained in:
parent
cd1e55bffc
commit
370d6e1fba
|
@ -175,7 +175,7 @@ class ApiController extends Zend_Controller_Action
|
||||||
/**
|
/**
|
||||||
* Retrieve the currently playing show as well as upcoming shows.
|
* Retrieve the currently playing show as well as upcoming shows.
|
||||||
* Number of shows returned and the time interval in which to
|
* 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
|
* 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');
|
$limit = $request->getParam('limit');
|
||||||
if($limit == "") {
|
if($limit == "" || !is_numeric($limit)) {
|
||||||
$limit = "5";
|
$limit = "5";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue