Ignore:
Timestamp:
12/18/12 16:15:29 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Correcoes para Performance: Function Within Loop Declaration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/class.so_external_applications.inc.php

    r7655 r7673  
    148148 
    149149                $output = $result->GetArray(-1); 
    150                 for ($i = 0; $i < count($output); ++$i) 
     150        $output_count = count($output); 
     151                for ($i = 0; $i < $output_count; ++$i) 
    151152                        for ($j = 0; $j < $result->_numOfFields; ++$j) 
    152153                                unset($output[$i][$j]); 
     
    170171 
    171172                $output = $result->GetArray(-1); 
    172                 for ($i = 0; $i < count($output); ++$i) 
     173        $output_count = count($output); 
     174                for ($i = 0; $i < $output_count; ++$i) 
    173175                        for ($j = 0; $j < $result->_numOfFields; ++$j) 
    174176                                unset($output[$i][$j]); 
Note: See TracChangeset for help on using the changeset viewer.