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

    r7655 r7673  
    3838                //Calculate the height of the row 
    3939                $nb=0; 
    40                 for($i=0;$i< count($data);++$i) 
     40        $data_count = count($data); 
     41                for($i=0;$i< $data_count;++$i) 
    4142                $nb=max($nb,$this->NbLines($this->widths[$i],$data[$i])); 
    4243                $h=5*$nb; 
     
    4445                $this->CheckPageBreak($h); 
    4546                //Draw the cells of the row 
    46                 for($i=0;$i< count($data);++$i) 
     47        $data_count = count($data); 
     48                for($i=0;$i< $data_count;++$i) 
    4749                { 
    4850                        $w=$this->widths[$i]; 
Note: See TracChangeset for help on using the changeset viewer.