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/news/login_news.php

    r7655 r7673  
    286286                $obj_organization = CreateObject('phpgwapi.sector_search_ldap'); 
    287287                $organizations = $obj_organization->organization_search($GLOBALS['phpgw_info']['server']['ldap_context']); 
    288                  
    289                 for ($i=0; $i<count($organizations); ++$i) 
     288 
     289        $organizations_count = count($organizations); 
     290                for ($i=0; $i<$organizations_count; ++$i) 
    290291                { 
    291292                        $tmp_array[strtolower($organizations[$i])] = $organizations[$i];         
Note: See TracChangeset for help on using the changeset viewer.