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/prototype/modules/catalog/interceptors/CatalogDBMapping.php

    r6579 r7655  
    2323 
    2424                if(count($params)>0 && isset($params[0]['id'])){ 
    25                         for($i=0; $i < count($params); $i++){ 
     25                        for($i=0; $i < count($params); ++$i){ 
    2626                                //Retorna o telefone e o e-mail padrao de um determinado contato 
    2727                                $sql = ' SELECT phpgw_cc_contact_conns.id_typeof_contact_connection as type, phpgw_cc_connections.connection_value as value ' 
     
    5555                $z = 0; 
    5656                $count = count($params); 
    57                 for($i=0; $i < $count; $i++){ 
     57                for($i=0; $i < $count; ++$i){ 
    5858                                //Retorna o telefone e o e-mail padrao de um determinado contato 
    5959                                $sql = 'SELECT contato.names_ordered as name, contato.id_contact as id, conexao.connection_value as value ' 
     
    7878                                                $params[$i]['contacts'][$z]['name'] = $connection['name'];                                                       
    7979                                                $params[$i]['contacts'][$z][INDEX_EMAIL] = $connection['value'];                                                         
    80                                                 $z++; 
     80                                                ++$z; 
    8181                                        } 
    8282                                } 
Note: See TracChangeset for help on using the changeset viewer.