From 10cda9f5a9cfa5d280b6dbc578982f2072f42b3c Mon Sep 17 00:00:00 2001 From: Chris Vigelius Date: Mon, 24 Sep 2012 10:56:41 +0200 Subject: [PATCH] fix: undefined variable $logrotatefile when rotating speciallogfile --- scripts/jobs/cron_traffic.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/jobs/cron_traffic.php b/scripts/jobs/cron_traffic.php index 93c23963..a307e60f 100644 --- a/scripts/jobs/cron_traffic.php +++ b/scripts/jobs/cron_traffic.php @@ -236,6 +236,8 @@ while($row = $db->fetch_array($result)) reset($speciallogfile_domainlist[$row['customerid']]); foreach($speciallogfile_domainlist[$row['customerid']] as $domainid => $domain) { + + $logrotatefile = '/tmp/froxlor_logrotate_tmpfile.conf'; $fh = fopen($logrotatefile, 'w'); $logconf = '# ' . basename($logrotatefile) . "\n" . '# Created ' . date('d.m.Y H:i') . "\n" .