Changeset 953

Show
Ignore:
Timestamp:
08/16/08 15:54:08 (3 years ago)
Author:
stavros
Message:

Class.Table was throwing PHP warnings when writelog was disabled

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/common/lib/Class.Table.php

    r831 r953  
    121121                } 
    122122                 
    123                 $time_end = microtime(true); 
    124                 $time = $time_end - $time_start; 
     123                if ($this -> writelog) { 
     124                        $time_end = microtime(true); 
     125                        $time = $time_end - $time_start; 
     126                } 
    125127         
    126128        if ($this -> writelog) {