From ff10f5e50ef0172d334b7ff80ed7265f4cd7ec89 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 11 Apr 2011 10:53:58 +0000 Subject: [PATCH] - Support 'off' as bolean false --- program/include/rcube_shared.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc index 2aa110092..8ed56d1de 100644 --- a/program/include/rcube_shared.inc +++ b/program/include/rcube_shared.inc @@ -140,7 +140,7 @@ function in_array_nocase($needle, $haystack) function get_boolean($str) { $str = strtolower($str); - if (in_array($str, array('false', '0', 'no', 'nein', ''), TRUE)) + if (in_array($str, array('false', '0', 'no', 'off', 'nein', ''), TRUE)) return FALSE; else return TRUE;