'on' is what checkboxes use for boolean true

This commit is contained in:
Evan Prodromou 2010-02-26 12:28:58 -05:00
parent 200a32b922
commit ea044722e0

View File

@ -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;