Commit e2dcbaf3 authored by Radek Suski's avatar Radek Suski

checking specifically for array

parent e029af16
......@@ -51,7 +51,7 @@ abstract class Input
*/
public static function Int( $name, $request = 'request', $default = 0 )
{
if ( isset( $_REQUEST[ $name ] ) && is_numeric( $_REQUEST[ $name ] ) ) {
if ( isset( $_REQUEST[ $name ] ) && !( is_array( $_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