alecpl
2011-04-11 ff10f5e50ef0172d334b7ff80ed7265f4cd7ec89
- Support 'off' as bolean false


1 files modified
2 ■■■ changed files
program/include/rcube_shared.inc 2 ●●● patch | view | raw | blame | history
program/include/rcube_shared.inc
@@ -140,7 +140,7 @@
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;