summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-05-23 08:35:27 +0200
committerAleksander Machniak <alec@alec.pl>2012-05-23 08:35:27 +0200
commitbe98408f40b68b7f935821819d3a84156074e188 (patch)
tree3de66b15f13c38ccadaed36f123ccd3fd12ee052 /program
parentbc79c55613714ce0a8cb04de60af396e6726086f (diff)
Fix possible PHP warning in in_array_nocase() when 2nd argument is not an array
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;
}