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.gdgraph.inc.php

    r7655 r7673  
    274274                        $linespace = ($this->graph_height - $this->margin_top - $this->margin_bottom) / ($this->num_lines_y - 1); 
    275275                        $space = 1; 
    276                         for ($i = 0;$i<count($this->data);++$i) 
     276            $data_count = count($this->data); 
     277                        for ($i = 0;$i<$data_count;++$i) 
    277278                        { 
    278279                                $y = $this->graph_height - $this->margin_bottom - ($space * $linespace) - 7; 
Note: See TracChangeset for help on using the changeset viewer.