Changeset 14048
- Timestamp:
- 05/03/12 10:19:25 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/utility.functions.php
r13972 r14048 73 73 // Don't append if the file is greater than ~2G since some systems fail 74 74 // 75 $size = sprintf("%u", filesize($log_file)) + strlen($txt);75 $size = file_exists($log_file) ? sprintf("%u", filesize($log_file)) + strlen($txt) : 0; 76 76 if ($size < 2000000000) { 77 77 file_put_contents($log_file, "[$tstamp] $txt", FILE_APPEND);
