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/class.log.inc.php

    r7655 r7673  
    9292 
    9393                        $errorstack = $this->errorstack; 
    94                         for ($i = 0; $i < count($errorstack); ++$i) 
     94            $errorstack_count = count($errorstack); 
     95                        for ($i = 0; $i < $errorstack_count; ++$i) 
    9596                        { 
    9697                                $err = $errorstack[$i]; 
     
    115116                        $new = array(); 
    116117                        reset($this->errorstack); 
    117                         for ($i = 0; $i < count($this->errorstack); ++$i) 
     118            $errorstack_count = count($this->errorstack); 
     119                        for ($i = 0; $i < $errorstack_count; ++$i) 
    118120                        { 
    119121                                $err = $this->errorstack[$i]; 
     
    141143 
    142144                        $errorstack = $this->errorstack; 
    143                         for ($i = 0; $i < count($errorstack); ++$i) 
     145            $errorstack_count = count($errorstack); 
     146                        for ($i = 0; $i < $errorstack_count; ++$i) 
    144147                        { 
    145148                                $err = $errorstack[$i]; 
Note: See TracChangeset for help on using the changeset viewer.