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/contactcenter/inc/class.abo_catalog.inc.php

    r5915 r7655  
    308308                         
    309309                        $n_fields = count($what); 
    310                         for($i = 0; $i < $n_fields; $i++) 
     310                        for($i = 0; $i < $n_fields; ++$i) 
    311311                        { 
    312312                                $path = $this->get_tables_by_field($what[$i], $tables_def); 
     
    354354                                        if ($n_joins = count($query_fields_joins)) 
    355355                                        { 
    356                                                 for($k = 0; $k < $n_joins; $k++) 
     356                                                for($k = 0; $k < $n_joins; ++$k) 
    357357                                                { 
    358358                                                        if (preg_match("/$query_join_reg/",$query_fields_joins[$k])) 
     
    388388                        $n_restrictions = count($restric_fields); 
    389389                         
    390                         for ($i = 0; $i < $n_restrictions; $i++) 
     390                        for ($i = 0; $i < $n_restrictions; ++$i) 
    391391                        { 
    392392                                $path = $this->get_tables_by_field($restric_fields[$i], $tables_def); 
     
    428428                                        if ($n_joins = count($query_restric_joins)) 
    429429                                        { 
    430                                                 for($k = 0; $k < $n_joins; $k++) 
     430                                                for($k = 0; $k < $n_joins; ++$k) 
    431431                                                { 
    432432                                                        if (preg_match("/$query_join_reg/",$query_restric_joins[$k])) 
     
    605605                        $return = array(); 
    606606                        $previous = false; 
    607                         for($i = 0; $i < $n_fields-1; $i++) 
     607                        for($i = 0; $i < $n_fields-1; ++$i) 
    608608                        { 
    609609                                $actual = $field_parts[$i]; 
Note: See TracChangeset for help on using the changeset viewer.