diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-05-23 08:35:27 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-05-23 08:35:27 +0200 |
commit | be98408f40b68b7f935821819d3a84156074e188 (patch) | |
tree | 3de66b15f13c38ccadaed36f123ccd3fd12ee052 | |
parent | bc79c55613714ce0a8cb04de60af396e6726086f (diff) |
Fix possible PHP warning in in_array_nocase() when 2nd argument is not an array
-rw-r--r-- | program/include/rcube_shared.inc | 2 |
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; } |