Changeset 7655 for trunk/workflow/inc/class.so_orgchart.inc.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/class.so_orgchart.inc.php
r7495 r7655 152 152 153 153 $output = $result->GetArray(-1); 154 for ($i = 0; $i < count($output); $i++)155 for ($j = 0; $j < $result->_numOfFields; $j++)154 for ($i = 0; $i < count($output); ++$i) 155 for ($j = 0; $j < $result->_numOfFields; ++$j) 156 156 unset($output[$i][$j]); 157 157 … … 308 308 309 309 $output = $result->GetArray(-1); 310 for ($i = 0; $i < count($output); $i++)311 for ($j = 0; $j < $result->_numOfFields; $j++)310 for ($i = 0; $i < count($output); ++$i) 311 for ($j = 0; $j < $result->_numOfFields; ++$j) 312 312 unset($output[$i][$j]); 313 313 … … 385 385 386 386 $output = $result->GetArray(-1); 387 for ($i = 0; $i < count($output); $i++)388 for ($j = 0; $j < $result->_numOfFields; $j++)387 for ($i = 0; $i < count($output); ++$i) 388 for ($j = 0; $j < $result->_numOfFields; ++$j) 389 389 unset($output[$i][$j]); 390 390 … … 462 462 463 463 $output = $result->GetArray(-1); 464 for ($i = 0; $i < count($output); $i++)465 for ($j = 0; $j < $result->_numOfFields; $j++)464 for ($i = 0; $i < count($output); ++$i) 465 for ($j = 0; $j < $result->_numOfFields; ++$j) 466 466 unset($output[$i][$j]); 467 467 … … 541 541 542 542 $output = $result->GetArray(-1); 543 for ($i = 0; $i < count($output); $i++)544 for ($j = 0; $j < $result->_numOfFields; $j++)543 for ($i = 0; $i < count($output); ++$i) 544 for ($j = 0; $j < $result->_numOfFields; ++$j) 545 545 unset($output[$i][$j]); 546 546 … … 623 623 624 624 $output = $result->GetArray(-1); 625 for ($i = 0; $i < count($output); $i++){626 for ($j = 0; $j < $result->_numOfFields; $j++)625 for ($i = 0; $i < count($output); ++$i){ 626 for ($j = 0; $j < $result->_numOfFields; ++$j) 627 627 unset($output[$i][$j]); 628 628 $output[$i]['centro_custo_id'] = empty($output[$i]['centro_custo_id']) ? 'NULL' : $output[$i]['centro_custo_id']; … … 714 714 $cachedLDAP = Factory::newInstance('CachedLDAP'); 715 715 $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_LDAP_DATABASE); 716 for ($i = 0; $i < count($output); $i++)716 for ($i = 0; $i < count($output); ++$i) 717 717 { 718 718 $output[$i]['funcionario_id_desc'] = ''; … … 771 771 die(serialize("O sistema de busca não pode ser utilizado nesta organização.")); 772 772 $entries = ldap_get_entries($ldap, $list); 773 for ($i=0; $i < $entries['count']; $i++)773 for ($i=0; $i < $entries['count']; ++$i) 774 774 $unifiedResult[$entries[$i]['uidnumber'][0]] = array('name' => $entries[$i]['cn'][0], 'uid' => $entries[$i]['uid'][0], 'removed' => false); 775 775 … … 790 790 791 791 $output = $result->GetArray(-1); 792 for ($i = 0; $i < count($output); $i++)793 { 794 for ($j = 0; $j < $result->_numOfFields; $j++)792 for ($i = 0; $i < count($output); ++$i) 793 { 794 for ($j = 0; $j < $result->_numOfFields; ++$j) 795 795 unset($output[$i][$j]); 796 796 $output[$i]['funcionario_id_desc'] = $unifiedResult[$output[$i]['funcionario_id']]['name']; … … 964 964 while ($row = $result->fetchRow(DB_FETCHMODE_ASSOC)) 965 965 { 966 for ($j = 0; $j < $result->_numOfFields; $j++)966 for ($j = 0; $j < $result->_numOfFields; ++$j) 967 967 unset($row[$j]); 968 968 $row['substituto_funcionario_id_desc'] = ($row['substituto_funcionario_id'] != '') ? $ldap->getName($row['substituto_funcionario_id']) : ''; … … 1003 1003 1004 1004 $output = $result->GetArray(-1); 1005 for ($i = 0; $i < count($output); $i++)1006 { 1007 for ($j = 0; $j < $result->_numOfFields; $j++)1005 for ($i = 0; $i < count($output); ++$i) 1006 { 1007 for ($j = 0; $j < $result->_numOfFields; ++$j) 1008 1008 unset($output[$i][$j]); 1009 1009 … … 1384 1384 1385 1385 $output = $result->GetArray(-1); 1386 for ($i = 0; $i < count($output); $i++)1387 for ($j = 0; $j < $result->_numOfFields; $j++)1386 for ($i = 0; $i < count($output); ++$i) 1387 for ($j = 0; $j < $result->_numOfFields; ++$j) 1388 1388 unset($output[$i][$j]); 1389 1389 … … 1586 1586 1587 1587 $output = $result->GetArray(-1); 1588 for ($i = 0; $i < count($output); $i++) {1589 for ($j = 0; $j < $result->_numOfFields; $j++)1588 for ($i = 0; $i < count($output); ++$i) { 1589 for ($j = 0; $j < $result->_numOfFields; ++$j) 1590 1590 unset($output[$i][$j]); 1591 1591
Note: See TracChangeset
for help on using the changeset viewer.