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
...@@ -154,7 +154,7 @@ class MySQLi ...@@ -154,7 +154,7 @@ class MySQLi
* *
* @return MySQLi * @return MySQLi
*/ */
public function & setQuery( $sql ) public function & setQuery( $sql )
{ {
$sql = str_replace( 'spdb', $this->prefix . 'sobipro', $sql ); $sql = str_replace( 'spdb', $this->prefix . 'sobipro', $sql );
$sql = str_replace( 'NOW()', '\'' . gmdate( 'Y-m-d H:i:s' ) . '\'', $sql ); $sql = str_replace( 'NOW()', '\'' . gmdate( 'Y-m-d H:i:s' ) . '\'', $sql );
......
...@@ -51,7 +51,12 @@ abstract class Input ...@@ -51,7 +51,12 @@ abstract class Input
*/ */
public static function Int( $name, $request = 'request', $default = 0 ) public static function Int( $name, $request = 'request', $default = 0 )
{ {
return (int) Request::Instance()->{$request}->getInt( $name, $default ); if ( isset( $_REQUEST[ $name ] ) && is_int( $_REQUEST[ $name ] ) ) {
return (int) Request::Instance()->{$request}->getInt( $name, $default );
}
else {
return $default;
}
} }
/** /**
......
...@@ -27,6 +27,11 @@ Legend: ...@@ -27,6 +27,11 @@ Legend:
- (!) - Change - (!) - 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) 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