Action->int(...) never replied with integers

This commit is contained in:
Mikael Nordfeldth 2014-04-21 14:31:18 +02:00
parent 86ddf120d7
commit 49a7cb9d84
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}