Aleksander Machniak
2012-11-21 f707fec0001d7dc7d46be114c42b37e49a052660
program/include/rcube_utils.php
@@ -958,4 +958,20 @@
            return $password;
        }
    }
    /**
     * Find out if the string content means true or false
     *
     * @param string $str Input value
     *
     * @return boolean Boolean value
     */
    public static function get_boolean($str)
    {
        $str = strtolower($str);
        return !in_array($str, array('false', '0', 'no', 'off', 'nein', ''), true);
    }
}