Changeset 7673 for trunk/home.php


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/home.php

    r7655 r7673  
    108108        $sorted_apps = array(); 
    109109        $user_apps = $GLOBALS['phpgw_info']['user']['apps'];  
    110         @reset($user_apps);      
    111         for($i = 0; $i < count($default_apps);++$i) { 
     110        @reset($user_apps); 
     111        $default_apps_count = count($default_apps); 
     112        for($i = 0; $i < $default_apps_count;++$i) { 
    112113                if(array_key_exists($default_apps[$i], $user_apps)){ 
    113114                        $sorted_apps[] = $default_apps[$i]; 
Note: See TracChangeset for help on using the changeset viewer.