[Svn] r1996 - trunk/roundcubemail/program/include

trac at roundcube.net trac at roundcube.net
Mon Oct 20 11:21:36 CEST 2008


Author: alec
Date: 2008-10-20 04:21:36 -0500 (Mon, 20 Oct 2008)
New Revision: 1996

Modified:
   trunk/roundcubemail/program/include/rcube_shared.inc
Log:
- little improvement in in_array_nocase()


Modified: trunk/roundcubemail/program/include/rcube_shared.inc
===================================================================
--- trunk/roundcubemail/program/include/rcube_shared.inc	2008-10-20 09:18:52 UTC (rev 1995)
+++ trunk/roundcubemail/program/include/rcube_shared.inc	2008-10-20 09:21:36 UTC (rev 1996)
@@ -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;

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list