Commit ae144646 authored by Radek Suski's avatar Radek Suski

is_int is too strict for input

parent 41d98e47
......@@ -51,7 +51,7 @@ abstract class Input
*/
public static function Int( $name, $request = 'request', $default = 0 )
{
if ( isset( $_REQUEST[ $name ] ) && is_int( $_REQUEST[ $name ] ) ) {
if ( isset( $_REQUEST[ $name ] ) && is_numeric( $_REQUEST[ $name ] ) ) {
return (int) Request::Instance()->{$request}->getInt( $name, $default );
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment