]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Action->int(...) never replied with integers
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Apr 2014 12:31:18 +0000 (14:31 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Apr 2014 12:46:41 +0000 (14:46 +0200)
lib/action.php

index 74ced563fbbbc46e3951dc9dfc5431db7ac38f89..e219847c702be29110b7a4a1e60bb30220bc578f 100644 (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;
         }