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/templates/default/login_default.php

    r7655 r7673  
    350350                $obj_organization = CreateObject('phpgwapi.sector_search_ldap'); 
    351351                $organizations = $obj_organization->organization_search($GLOBALS['phpgw_info']['server']['ldap_context']); 
    352                  
    353                 for ($i=0; $i<count($organizations); ++$i) 
     352 
     353        $organizations_count = count($organizations); 
     354                for ($i=0; $i<$organizations_count; ++$i) 
    354355                { 
    355356                        $tmp_array[strtolower($organizations[$i])] = $organizations[$i];         
Note: See TracChangeset for help on using the changeset viewer.