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

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

Location:
trunk/phpgwapi/inc/fpdf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/fpdf/fpdf.php

    r7655 r7673  
    12831283                { 
    12841284                        $trns=''; 
    1285                         for($i=0;$i<count($info['trns']);++$i) 
     1285            $info_trns_count = count($info['trns']); 
     1286                        for($i=0;$i<$info_trns_count;++$i) 
    12861287                                $trns.=$info['trns'][$i].' '.$info['trns'][$i].' '; 
    12871288                        $this->_out('/Mask ['.$trns.']'); 
  • trunk/phpgwapi/inc/fpdf/tutorial/tuto5.php

    r7655 r7673  
    3838        $w=array(40,35,40,45); 
    3939        //Header 
    40         for($i=0;$i<count($header);++$i) 
     40    $header_count = count($header); 
     41        for($i=0;$i<$header_count;++$i) 
    4142                $this->Cell($w[$i],7,$header[$i],1,0,'C'); 
    4243        $this->Ln(); 
     
    6566        //Header 
    6667        $w=array(40,35,40,45); 
    67         for($i=0;$i<count($header);++$i) 
     68    $header_count = count($header); 
     69        for($i=0;$i<$header_count;++$i) 
    6870                $this->Cell($w[$i],7,$header[$i],1,0,'C',1); 
    6971        $this->Ln(); 
Note: See TracChangeset for help on using the changeset viewer.