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.ldap_functions.inc.php

    r7655 r7673  
    15711571                                $entry[0]['dn'] = strtolower($entry[0]['dn']); 
    15721572                                $sector_dn_array = explode(",", $entry[0]['dn']); 
    1573                                 for($i=1; $i<count($sector_dn_array); ++$i) 
     1573                $sector_dn_array_count = count($sector_dn_array); 
     1574                                for($i=1; $i<$sector_dn_array_count; ++$i) 
    15741575                                        $sector_dn .= $sector_dn_array[$i] . ','; 
    15751576                                //Retira ultimo pipe. 
     
    16981699                                $entry[0]['dn'] = strtolower($entry[0]['dn']); 
    16991700                                $sector_dn_array = explode(",", $entry[0]['dn']); 
    1700                                 for($i=1; $i<count($sector_dn_array); ++$i) 
     1701                $sector_dn_array_count = count($sector_dn_array); 
     1702                                for($i=1; $i<$sector_dn_array_count; ++$i) 
    17011703                                        $sector_dn .= $sector_dn_array[$i] . ','; 
    17021704                                //Retira ultimo pipe. 
     
    18311833                                $entry[0]['dn'] = strtolower($entry[0]['dn']); 
    18321834                                $sector_dn_array = explode(",", $entry[0]['dn']); 
    1833                                 for($i=1; $i<count($sector_dn_array); ++$i) 
     1835                $sector_dn_array_count = count($sector_dn_array); 
     1836                                for($i=1; $i<$sector_dn_array_count; ++$i) 
    18341837                                        $sector_dn .= $sector_dn_array[$i] . ','; 
    18351838                                //Retira ultimo pipe. 
     
    19291932                                $entry[0]['dn'] = strtolower($entry[0]['dn']); 
    19301933                                $sector_dn_array = explode(",", $entry[0]['dn']); 
    1931                                 for($i=1; $i<count($sector_dn_array); ++$i) 
     1934                $sector_dn_array_count = count($sector_dn_array); 
     1935                                for($i=1; $i<$sector_dn_array_count; ++$i) 
    19321936                                        $sector_dn .= $sector_dn_array[$i] . ','; 
    19331937                                //Retira ultimo pipe. 
     
    20012005                                $entry[0]['dn'] = strtolower($entry[0]['dn']); 
    20022006                                $sector_dn_array = explode(",", $entry[0]['dn']); 
    2003                                 for($i=1; $i<count($sector_dn_array); ++$i) 
     2007                $sector_dn_array_count = count($sector_dn_array); 
     2008                                for($i=1; $i<$sector_dn_array_count; ++$i) 
    20042009                                        $sector_dn .= $sector_dn_array[$i] . ','; 
    20052010                                //Retira ultimo pipe. 
Note: See TracChangeset for help on using the changeset viewer.