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/phpgwapi/inc/class.vfs_sql.inc.php

    r6057 r7655  
    242242                        $sql2 .= ' VALUES ('; 
    243243 
    244                         for ($i = 0; list ($attribute, $value) = each ($file_array); $i++) 
     244                        for ($i = 0; list ($attribute, $value) = each ($file_array); ++$i) 
    245245                        { 
    246246                                if ($attribute == 'file_id' || $attribute == 'content') 
     
    357357                                        } 
    358358 
    359                                         for ($i = 0; $i < $newnumofparts; $i++) 
     359                                        for ($i = 0; $i < $newnumofparts; ++$i) 
    360360                                        { 
    361361                                                if (!isset ($version_parts[$i])) 
     
    22222222                                        $sql .= $attribute.'=' .$GLOBALS['phpgw']->db->quote($data['attributes'][$attribute],$this->column_defs[$attribute]['type']); 
    22232223 
    2224                                         $change_attributes++; 
     2224                                        ++$change_attributes; 
    22252225                                } 
    22262226                        } 
     
    28632863 
    28642864                        $rarray = array (); 
    2865                         for ($i = 0; $GLOBALS['phpgw']->db->next_record (); $i++) 
     2865                        for ($i = 0; $GLOBALS['phpgw']->db->next_record (); ++$i) 
    28662866                        { 
    28672867                                $record = $GLOBALS['phpgw']->db->Record; 
Note: See TracChangeset for help on using the changeset viewer.