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

    r7655 r7673  
    4040                                /* fields from phpgw_log table */ 
    4141                                $clist = $this->db->metadata('phpgw_log'); 
    42                                 for ($i=0; $i<count($clist); ++$i) 
     42                $clist_count = count($clist); 
     43                                for ($i=0; $i<$clist_count; ++$i) 
    4344                                { 
    4445                                        $name =  $clist[$i]['name']; 
     
    4849                                /* fields from phpgw_log_msg table */ 
    4950                                $clist = $this->db->metadata('phpgw_log_msg'); 
    50                                 for ($i=0; $i<count($clist); ++$i) 
     51                $clist_count = count($clist); 
     52                                for ($i=0; $i<$clist_count; ++$i) 
    5153                                { 
    5254                                        $name =  $clist[$i]['name']; 
     
    6668                                /* Enhance with Columns for phpgw_accounts */ 
    6769                                $clist = $this->db->metadata('phpgw_accounts'); 
    68                                 for ($i=0; $i<count($clist); ++$i) 
     70                $clist_count = count($clist); 
     71                                for ($i=0; $i<$clist_count; ++$i) 
    6972                                { 
    7073                                        $name =  $clist[$i]['name']; 
Note: See TracChangeset for help on using the changeset viewer.