summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_shared.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index ebea61267..08fca48dc 100644
--- a/program/include/rcube_shared.inc
+++ b/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;
}