diff options
Diffstat (limited to 'program/include/rcube_shared.inc')
-rw-r--r-- | program/include/rcube_shared.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc index ab4b77bae..8f5f0739a 100644 --- a/program/include/rcube_shared.inc +++ b/program/include/rcube_shared.inc @@ -82,9 +82,11 @@ function send_future_expire_header($offset=2600000) function in_array_nocase($needle, $haystack) { $needle = mb_strtolower($needle); - foreach ($haystack as $value) - if ($needle===mb_strtolower($value)) - return true; + foreach ((array)$haystack as $value) { + if ($needle === mb_strtolower($value)) { + return true; + } + } return false; } |