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

trac at roundcube.net trac at roundcube.net
Mon Jun 13 14:56:32 CEST 2011


Author: alec
Date: 2011-06-13 07:56:31 -0500 (Mon, 13 Jun 2011)
New Revision: 4846

Modified:
   trunk/roundcubemail/program/include/rcube_ldap.php
Log:
- Support array in 2nd argument of search() when searching by primary key, as in rcube_contacts class


Modified: trunk/roundcubemail/program/include/rcube_ldap.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_ldap.php	2011-06-10 01:34:34 UTC (rev 4845)
+++ trunk/roundcubemail/program/include/rcube_ldap.php	2011-06-13 12:56:31 UTC (rev 4846)
@@ -469,7 +469,7 @@
         // special treatment for ID-based search
         if ($fields == 'ID' || $fields == $this->primary_key)
         {
-            $ids = explode(',', $value);
+            $ids = !is_array($value) ? explode(',', $value) : $value;
             $result = new rcube_result_set();
             foreach ($ids as $id)
             {

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



More information about the Svn mailing list