Commit 49a7cb9d authored by mmn's avatar mmn

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

parent 86ddf120
......@@ -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;
}
......
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