forked from GNUsocial/gnu-social
imitate ->boolean with $def=false
This commit is contained in:
parent
4f2095ea00
commit
0b81fbd590
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user