Changeset 529 in subversion


Ignore:
Timestamp:
Mar 28, 2007 9:53:36 AM (6 years ago)
Author:
thomasb
Message:

devel-addressbook: allow to copy multiple LDAP records to local address book

Location:
branches/devel-addressbook/program
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/devel-addressbook/program/include/rcube_ldap.inc

    r528 r529  
    246246    { 
    247247      $ids = explode(',', $value); 
    248       $this->result = new rcube_result_set(); 
     248      $result = new rcube_result_set(); 
    249249      foreach ($ids as $id) 
    250250        if ($rec = $this->get_record($id, true)) 
    251251        { 
    252           $this->result->add($rec); 
    253           $this->result->count++; 
     252          $result->add($rec); 
     253          $result->count++; 
    254254        } 
    255255       
    256       return $this->result; 
     256      return $result; 
    257257    } 
    258258     
  • branches/devel-addressbook/program/steps/addressbook/copy.inc

    r528 r529  
    2222$cid = get_input_value('_cid', RCUBE_INPUT_POST); 
    2323$target = get_input_value('_to', RCUBE_INPUT_POST); 
    24 if ($cid && preg_match('/^[a-z0-9\-_=]+(,[0-9]+)*$/i', $cid) && strlen($target) && $target != $source) 
     24if ($cid && preg_match('/^[a-z0-9\-_=]+(,[a-z0-9\-_=]+)*$/i', $cid) && strlen($target) && $target != $source) 
    2525{ 
    2626  if ($target != '0') 
Note: See TracChangeset for help on using the changeset viewer.