alecpl
2008-10-20 ba80566b1eae376997567c2801c65e8e358612ed
- little improvement in in_array_nocase()


1 files modified
3 ■■■■ changed files
program/include/rcube_shared.inc 3 ●●●● patch | view | raw | blame | history
program/include/rcube_shared.inc
@@ -209,8 +209,9 @@
 */
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;