Changeset 4846 in subversion


Ignore:
Timestamp:
Jun 13, 2011 8:56:31 AM (2 years ago)
Author:
alec
Message:
  • Support array in 2nd argument of search() when searching by primary key, as in rcube_contacts class
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_ldap.php

    r4845 r4846  
    470470        if ($fields == 'ID' || $fields == $this->primary_key) 
    471471        { 
    472             $ids = explode(',', $value); 
     472            $ids = !is_array($value) ? explode(',', $value) : $value; 
    473473            $result = new rcube_result_set(); 
    474474            foreach ($ids as $id) 
Note: See TracChangeset for help on using the changeset viewer.