diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-20 09:21:36 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-20 09:21:36 +0000 |
| commit | 98299e332f3cbe56228fd84b2672aeaa6c6b8fa0 (patch) | |
| tree | 626220a866771b060938c38f03ce4981f7157b3b /roundcubemail/program/include/rcube_shared.inc | |
| parent | ace8bd430229e5e33f0efb766696bd10677356c1 (diff) | |
- little improvement in in_array_nocase()
git-svn-id: https://svn.roundcube.net/trunk@1996 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_shared.inc')
| -rw-r--r-- | roundcubemail/program/include/rcube_shared.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_shared.inc b/roundcubemail/program/include/rcube_shared.inc index af5eb1fda..3b63d9c0e 100644 --- a/roundcubemail/program/include/rcube_shared.inc +++ b/roundcubemail/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; |
