'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
1 changed files with 1 additions and 1 deletions

View File

@ -974,7 +974,7 @@ class Action extends HTMLOutputter // lawsuit
if (is_null($arg)) {
return $def;
} else if (in_array($arg, array('true', 'yes', '1'))) {
} else if (in_array($arg, array('true', 'yes', '1', 'on'))) {
return true;
} else if (in_array($arg, array('false', 'no', '0'))) {
return false;