From: Evan Prodromou Date: Fri, 26 Feb 2010 17:28:58 +0000 (-0500) Subject: 'on' is what checkboxes use for boolean true X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ea044722e015195c5422556ae279cac71b954ee8;p=quix0rs-gnu-social.git 'on' is what checkboxes use for boolean true --- diff --git a/lib/action.php b/lib/action.php index cc4f4aad07..0a607b42d5 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;