From ea044722e015195c5422556ae279cac71b954ee8 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 26 Feb 2010 12:28:58 -0500 Subject: 'on' is what checkboxes use for boolean true --- lib/action.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/action.php b/lib/action.php index cc4f4aad0..0a607b42d 100644 --- a/lib/action.php +++ b/lib/action.php @@ -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; -- cgit v1.2.3-54-g00ecf