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/expressoAdmin1_2/inc/class.socomputers.inc.php

    r7655 r7673  
    8686                                        // Recupera o contexto do email_list 
    8787                                        $tmp = explode(",", $computer_data['dn']); 
    88                                         for ($i = 1; $i < count($tmp); ++$i) 
     88                    $tmp_count = count($tmp); 
     89                                        for ($i = 1; $i < $tmp_count; ++$i) 
    8990                                                $computer_data['context'] .= $tmp[$i] . ','; 
    9091                                        $computer_data['context'] = substr($computer_data['context'],0,(strlen($computer_data['context']) - 1)); 
Note: See TracChangeset for help on using the changeset viewer.