From: Mikael Nordfeldth Date: Mon, 21 Apr 2014 12:31:18 +0000 (+0200) Subject: Action->int(...) never replied with integers X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=49a7cb9d84e1da6b2aae7d35a2997d232e106ed1;p=quix0rs-gnu-social.git Action->int(...) never replied with integers --- 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; }