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/prototype/services/PostgreSQL.php

    r7655 r7673  
    358358            $orderDesc = array( $orderDesc ); 
    359359        } 
    360  
    361         for($i=0; $i<count($order); ++$i){ 
     360        $order_count = count($order); 
     361        for($i=0; $i<$order_count; ++$i){ 
    362362            $order[$i] .= ($orderDesc[$i] === true) ? ' DESC' : ''; 
    363363        } 
Note: See TracChangeset for help on using the changeset viewer.