Merge pull request #52 from chrisv2/logrotate_speciallogfile_undefined_variable

fix: undefined variable $logrotatefile when rotating speciallogfile
This commit is contained in:
Florian Aders
2012-09-25 00:27:40 -07:00

View File

@@ -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" .