Changeset 14048

Show
Ignore:
Timestamp:
05/03/12 10:19:25 (1 year ago)
Author:
p_lindheimer
Message:

fixes #5533 harmless warning message by not checking the filesize of the log file the first time if it does not exists yet

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/utility.functions.php

    r13972 r14048  
    7373        // Don't append if the file is greater than ~2G since some systems fail 
    7474        // 
    75         $size = sprintf("%u", filesize($log_file)) + strlen($txt)
     75        $size = file_exists($log_file) ? sprintf("%u", filesize($log_file)) + strlen($txt) : 0
    7676        if ($size < 2000000000) { 
    7777          file_put_contents($log_file, "[$tstamp] $txt", FILE_APPEND);