summaryrefslogtreecommitdiff
path: root/program/include/rcube_shared.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcube_shared.inc')
-rw-r--r--program/include/rcube_shared.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index af5eb1fda..3b63d9c0e 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -209,8 +209,9 @@ function array2js($arr, $type='')
*/
function in_array_nocase($needle, $haystack)
{
+ $needle = rc_strtolower($needle);
foreach ($haystack as $value)
- if (rc_strtolower($needle)===rc_strtolower($value))
+ if ($needle===rc_strtolower($value))
return true;
return false;