Commit 41d98e47 authored by Radek Suski's avatar Radek Suski

(+) Workoaround for Joomla returnig wrongfully an integer when array with the same name is set

parent 263ccbb5
......@@ -51,8 +51,13 @@ abstract class Input
*/
public static function Int( $name, $request = 'request', $default = 0 )
{
if ( isset( $_REQUEST[ $name ] ) && is_int( $_REQUEST[ $name ] ) ) {
return (int) Request::Instance()->{$request}->getInt( $name, $default );
}
else {
return $default;
}
}
/**
* @param string $name
......
......@@ -27,6 +27,11 @@ Legend:
- (!) - Change
1.0.10 (2019)
------------------
(+) Workoaround for Joomla returnig wrongfully an integer when array with the same name is set
1.0.9 (13 February 2019)
------------------
......
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