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

    r7655 r7673  
    435435                        $html_error = '<table border="0" width="100%"><tr><td align="right"><b>' . lang($text) 
    436436                                . '</b>: </td><td align="left">' . $errors[0] . '</td></tr>'; 
    437                         for ($i=1; $i<count($errors); ++$i) 
     437            $errors_count = count($errors); 
     438                        for ($i=1; $i<$errors_count; ++$i) 
    438439                        { 
    439440                                $html_error .= '<tr><td>&nbsp;</td><td align="left">' . $errors[$i] . '</td></tr>'; 
Note: See TracChangeset for help on using the changeset viewer.