From 49a7cb9d84e1da6b2aae7d35a2997d232e106ed1 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 21 Apr 2014 14:31:18 +0200 Subject: [PATCH] Action->int(...) never replied with integers --- lib/action.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/action.php b/lib/action.php index 74ced563fb..e219847c70 100644 --- a/lib/action.php +++ b/lib/action.php @@ -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; }