]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/action.php
imitate ->boolean with $def=false
[quix0rs-gnu-social.git] / 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';
     }