]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
imitate ->boolean with $def=false
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 14 Mar 2015 15:04:03 +0000 (16:04 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 14 Mar 2015 15:04:03 +0000 (16:04 +0100)
lib/action.php

index 5627b73b6cd7da6484ecdc0fe5dd67f784f0756c..a9cc99221da1b2eb573bb309aac6f323e4352a21 100644 (file)
@@ -1371,7 +1371,7 @@ class Action extends HTMLOutputter // lawsuit
      * Upstream bug is::
      * https://pear.php.net/bugs/bug.php?id=20291
      */
-    function booleanintstring($key, $def)
+    function booleanintstring($key, $def=false)
     {
         return $this->boolean($key, $def) ? '1' : '0';
     }