Action->int(...) never replied with integers
This commit is contained in:
parent
86ddf120d7
commit
49a7cb9d84
|
@ -1333,9 +1333,9 @@ class Action extends HTMLOutputter // lawsuit
|
|||
*/
|
||||
function int($key, $defValue=null, $maxValue=null, $minValue=null)
|
||||
{
|
||||
$arg = strtolower($this->trimmed($key));
|
||||
$arg = intval($this->arg($key));
|
||||
|
||||
if (is_null($arg) || !is_integer($arg)) {
|
||||
if (!is_numeric($this->arg($key)) || $arg != $this->arg($key)) {
|
||||
return $defValue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user