Ignore:
Timestamp:
12/14/12 14:30:35 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Melhorias de performance no codigo do Expresso.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jabberit_messenger/jmessenger/inc/class.ContactsIm.inc.php

    r3406 r7655  
    7070                if( is_array($users) ) 
    7171                {        
    72                         for($i = 0; $i < count($users); $i++)                            
     72                        for($i = 0; $i < count($users); ++$i) 
    7373                        { 
    7474                                if( is_array($hostsJabber) ) 
     
    204204                        $_restrict = array(); 
    205205                         
    206                         for( $i = 0 ; $i < count($orgs) ; $i++ ) 
    207                         { 
    208                                 for( $j = 0 ; $j < count($array_uids) ; $j++ ) 
     206                        for( $i = 0 ; $i < count($orgs) ; ++$i ) 
     207                        { 
     208                                for( $j = 0 ; $j < count($array_uids) ; ++$j ) 
    209209                                { 
    210210                                        if( trim($array_uids[$j]['ou']) === trim($orgs[$i]) ) 
     
    248248        { 
    249249            $result = array(); 
    250             for($i = $offset; $i< strlen($haystack); $i++ ) 
     250            for($i = $offset; $i< strlen($haystack); ++$i ) 
    251251            { 
    252252                $pos = strpos($haystack,$needle,$i); 
     
    332332                                                $orgs = array(); 
    333333                                 
    334                                                 for( $i = 0 ; $i < count($posAll); $i++ ) 
     334                                                for( $i = 0 ; $i < count($posAll); ++$i ) 
    335335                                                { 
    336336                                                        $pos = strpos($ou_User, ","); 
     
    370370                                                        $orgs = array(); 
    371371                                         
    372                                                         for( $i = 0 ; $i < count($posAll); $i++ ) 
     372                                                        for( $i = 0 ; $i < count($posAll); ++$i ) 
    373373                                                        { 
    374374                                                                $pos = strpos($ou_User, ","); 
Note: See TracChangeset for help on using the changeset viewer.