Changeset 7655 for trunk/workflow/inc/class.WorkflowLDAP.inc.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/class.WorkflowLDAP.inc.php
r3729 r7655 171 171 { 172 172 $attributes = ldap_get_attributes($this->dataSource, $entry); 173 for ($i = 0; $i < $attributes['count']; $i++)173 for ($i = 0; $i < $attributes['count']; ++$i) 174 174 $output[$counter][$attributes[$i]] = ldap_get_values_len($this->dataSource, $entry, $attributes[$i]); 175 175 176 $counter++;176 ++$counter; 177 177 } while ($entry = ldap_next_entry($this->dataSource, $entry)); 178 178 … … 201 201 202 202 $output = array(); 203 for ($i = 0; $i < $result['count']; $i++)203 for ($i = 0; $i < $result['count']; ++$i) 204 204 { 205 205 $output[] = array( … … 249 249 $resourceIdentifier = ldap_search($this->dataSource, $this->groupContext, "(&(phpgwaccounttype=g)(memberuid={$userLogin}))", array('gidnumber')); 250 250 $result = ldap_get_entries($this->dataSource, $resourceIdentifier); 251 for ($i = 0; $i < $result['count']; $i++)251 for ($i = 0; $i < $result['count']; ++$i) 252 252 $output[] = $result[$i]['gidnumber'][0]; 253 253 … … 295 295 $output = array(); 296 296 $userCount = count($result); 297 for ($i = 0; $i < $userCount; $i++)297 for ($i = 0; $i < $userCount; ++$i) 298 298 $output[] = array( 299 299 'account_id' => $result[$i]['uidnumber'][0], … … 356 356 /* collect the data */ 357 357 $output = array(); 358 for ($i = 0; $i < $result['count']; $i++)358 for ($i = 0; $i < $result['count']; ++$i) 359 359 { 360 360 $output[] = array( … … 572 572 $output = array(); 573 573 $entityCount = count($result); 574 for ($i = 0; $i < $entityCount; $i++)574 for ($i = 0; $i < $entityCount; ++$i) 575 575 $output[] = array( 576 576 'id' => ($result[$i]['phpgwaccounttype'][0] == 'g') ? $result[$i]['gidnumber'][0] : $result[$i]['uidnumber'][0], … … 631 631 632 632 $output = array(); 633 for ($i = 0; $i < $result['count']; $i++)633 for ($i = 0; $i < $result['count']; ++$i) 634 634 $output[] = array( 635 635 'id' => ($result[$i]['phpgwaccounttype'][0] == 'g') ? $result[$i]['gidnumber'][0] : $result[$i]['uidnumber'][0],
Note: See TracChangeset
for help on using the changeset viewer.