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/phpgwapi/inc/common_functions.inc.php

    r7655 r7673  
    10831083                $less = 0; 
    10841084 
    1085                 for ($i=0;$i<count($testa);++$i) 
     1085        $testa_count = count($testa); 
     1086                for ($i=0;$i<$testa_count;++$i) 
    10861087                { 
    10871088                        if ($DEBUG) { echo'<br>Checking if '. (int)$testa[$i] . ' is less than ' . (int)$testb[$i] . ' ...'; } 
     
    11631164                $less = 0; 
    11641165 
    1165                 for ($i=0;$i<count($testa);++$i) 
     1166        $testa_count = count($testa); 
     1167                for ($i=0;$i<$testa_count;++$i) 
    11661168                { 
    11671169                        if ($DEBUG) { echo'<br>Checking if '. (int)$testa[$i] . ' is more than ' . (int)$testb[$i] . ' ...'; } 
Note: See TracChangeset for help on using the changeset viewer.