Changeset 6055 in subversion for trunk/roundcubemail/program/include/rcube_ldap.php
- Timestamp:
- Apr 10, 2012 3:47:15 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_ldap.php
r6047 r6055 1285 1285 // Need to delete all sub-entries first 1286 1286 if ($this->sub_filter) { 1287 if ($entries = $this->ldap_list($dn, $this->sub_filter , array_keys($this->props['sub_fields']))) {1287 if ($entries = $this->ldap_list($dn, $this->sub_filter)) { 1288 1288 foreach ($entries as $entry) { 1289 1289 if (!$this->ldap_delete($entry['dn'])) { … … 1312 1312 1313 1313 return count($ids); 1314 } 1315 1316 1317 /** 1318 * Remove all contact records 1319 */ 1320 function delete_all() 1321 { 1322 //searching for contact entries 1323 $dn_list = $this->ldap_list($this->base_dn, $this->prop['filter'] ? $this->prop['filter'] : '(objectclass=*)'); 1324 1325 if (!empty($dn_list)) { 1326 foreach ($dn_list as $idx => $entry) { 1327 $dn_list[$idx] = self::dn_encode($entry['dn']); 1328 } 1329 $this->delete($dn_list); 1330 } 1314 1331 } 1315 1332 … … 2173 2190 * Wrapper for ldap_list() 2174 2191 */ 2175 protected function ldap_list($dn, $filter, $attrs )2192 protected function ldap_list($dn, $filter, $attrs = array('')) 2176 2193 { 2177 2194 $list = array();
Note: See TracChangeset
for help on using the changeset viewer.
