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

    r7655 r7673  
    521521 
    522522                        $description = $this->bo->get_short_field($event,$is_private,'description'); 
    523                         for($i=0;$i<count($picture);++$i) 
     523            $picture_count = count($picture); 
     524                        for($i=0;$i<$picture_count;++$i) 
    524525                        { 
    525526                                $var = Array( 
     
    946947                                if($holidays) 
    947948                                { 
    948                                         for($k=0;$k<count($holidays);++$k) 
     949                    $holidays_count = count($holidays); 
     950                                        for($k=0;$k<$holidays_count;++$k) 
    949951                                        { 
    950952                                                $holiday_name[] = $holidays[$k]['name']; 
Note: See TracChangeset for help on using the changeset viewer.