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/listAdmin/inc/class.db_functions.inc.php

    r7655 r7673  
    282282                while($this->db->next_record()) 
    283283                        $user_app[] = $this->db->row(); 
    284                  
    285                 for ($i=0; $i<count($user_app); ++$i) 
     284 
     285        $user_app_count = count($user_app); 
     286                for ($i=0; $i<$user_app_count; ++$i) 
    286287                        $return['groups'][] = $user_app[$i]['acl_location']; 
    287288                 
Note: See TracChangeset for help on using the changeset viewer.