Changeset 7712 for trunk/workflow/inc/class.so_userinterface.inc.php
- Timestamp:
- 01/08/13 10:35:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/class.so_userinterface.inc.php
r7673 r7712 123 123 124 124 /* keep only associative elments and check if the user can access an intranet application */ 125 $preOutput_count = count($preOutput); 126 for ($i = 0; $i < $preOutput_count; ++$i) 125 for ($i = 0; $i < count($preOutput); ++$i) 127 126 { 128 127 if (($preOutput[$i]['intranet_only'] == '1') && (!$showIntranetApplications)) … … 170 169 171 170 $output = $result->GetArray(-1); 172 $output_count = count($output); 173 for ($i = 0; $i < $output_count; ++$i)171 172 for ($i = 0; $i < count($output); ++$i) 174 173 for ($j = 0; $j < $result->_numOfFields; ++$j) 175 174 unset($output[$i][$j]); … … 198 197 199 198 $output = $result->GetArray(-1); 200 $output_count = count($output); 201 for ($i = 0; $i < $output_count; ++$i)199 200 for ($i = 0; $i < count($output); ++$i) 202 201 { 203 202 for ($j = 0; $j < $result->_numOfFields; ++$j) … … 221 220 222 221 $output = $result->GetArray(-1); 223 $output_count = count($output); 224 for ($i = 0; $i < $output_count; ++$i)222 223 for ($i = 0; $i < count($output); ++$i) 225 224 for ($j = 0; $j < $result->_numOfFields; ++$j) 226 225 unset($output[$i][$j]); … … 300 299 $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_NORMAL); 301 300 $categoriesCount = array(); 302 $employees_count = count($employees); 303 for ($i = 0; $i < $employees_count; ++$i)301 302 for ($i = 0; $i < count($employees); ++$i) 304 303 { 305 304 /* remove numeric fields */ … … 401 400 $cachedLDAP = Factory::newInstance('CachedLDAP'); 402 401 $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_NORMAL); 403 $employees_count = count($employees); 404 for ($i = 0; $i < $employees_count; ++$i)402 403 for ($i = 0; $i < ount($employees); ++$i) 405 404 { 406 405 /* remove numeric fields */ … … 718 717 719 718 $output = $result->GetArray(-1); 720 $output_count = count($output); 721 for ($i = 0; $i < $output_count; ++$i)719 720 for ($i = 0; $i < count($output); ++$i) 722 721 for ($j = 0; $j < $result->_numOfFields; ++$j) 723 722 unset($output[$i][$j]); … … 740 739 741 740 $output = $result->GetArray(-1); 742 $output_count = count($output); 743 for ( $i = 0; $i < $output_count; ++$i )741 742 for ( $i = 0; $i < count($output); ++$i ) 744 743 { 745 744 for ($j = 0; $j < $result->_numOfFields; ++$j) … … 772 771 773 772 $output = $result->GetArray( -1 ); 774 $output_count = count($output); 775 for ( $i = 0; $i < $output_count; ++$i )773 774 for ( $i = 0; $i < count($output); ++$i ) 776 775 for ($j = 0; $j < $result->_numOfFields; ++$j) 777 776 unset($output[$i][$j]); … … 809 808 810 809 $categoriesCount = array( ); 811 $employees_count = count( $employees ); 812 for ( $i = 0; $i < $employees_count; ++$i )810 811 for ( $i = 0; $i < count( $employees ); ++$i ) 813 812 { 814 813 // remove numeric fields … … 882 881 883 882 $categoriesCount = array( ); 884 $employees_count = count( $employees ); 885 for ( $i = 0; $i < $employees_count; ++$i )883 884 for ( $i = 0; $i < count( $employees ); ++$i ) 886 885 { 887 886 // remove numeric fields
Note: See TracChangeset
for help on using the changeset viewer.