Commit 3d69a997 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Suppress warning when trying to rename nonexistent views.log file


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent a9ab4690
......@@ -2390,7 +2390,7 @@ function cron_site_data_daily() {
// Process log file containing view visits
$viewlog = get_config('dataroot') . 'log/views.log';
if (rename($viewlog, $viewlog . '.temp') and $fh = @fopen($viewlog . '.temp', 'r')) {
if (@rename($viewlog, $viewlog . '.temp') and $fh = @fopen($viewlog . '.temp', 'r')) {
// Read the new stuff out of the file
$latest = get_config('viewloglatest');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment