Aleksander Machniak
2012-05-23 be98408f40b68b7f935821819d3a84156074e188
Fix possible PHP warning in in_array_nocase() when 2nd argument is not an array
1 files modified
2 ■■■ changed files
program/include/rcube_shared.inc 2 ●●● patch | view | raw | blame | history
program/include/rcube_shared.inc
@@ -38,7 +38,7 @@
function in_array_nocase($needle, $haystack)
{
    $needle = mb_strtolower($needle);
    foreach ($haystack as $value) {
    foreach ((array)$haystack as $value) {
        if ($needle === mb_strtolower($value)) {
            return true;
        }