forked from GNUsocial/gnu-social
'on' is what checkboxes use for boolean true
This commit is contained in:
parent
200a32b922
commit
ea044722e0
@ -974,7 +974,7 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
|
|
||||||
if (is_null($arg)) {
|
if (is_null($arg)) {
|
||||||
return $def;
|
return $def;
|
||||||
} else if (in_array($arg, array('true', 'yes', '1'))) {
|
} else if (in_array($arg, array('true', 'yes', '1', 'on'))) {
|
||||||
return true;
|
return true;
|
||||||
} else if (in_array($arg, array('false', 'no', '0'))) {
|
} else if (in_array($arg, array('false', 'no', '0'))) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user