From 220118f4bc79eeb087afa9527049f8be6a4eab61 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Thu, 8 Apr 2010 14:54:42 +0000 Subject: [PATCH] corrected index-name of array --- scripts/jobs/cron_tasks.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/jobs/cron_tasks.php b/scripts/jobs/cron_tasks.php index cbd560df..7e4e7e2b 100644 --- a/scripts/jobs/cron_tasks.php +++ b/scripts/jobs/cron_tasks.php @@ -75,7 +75,8 @@ while($row = $db->fetch_array($result_tasks)) $awstatsclean['fh'] = fopen($awstatsclean['fullentry'], 'r'); $awstatsclean['headerRead'] = fgets($awstatsclean['fh'], strlen($awstatsclean['header'])+1); fclose($awstatsclean['fh']); - if($awstatsclean['headerRead'] == $awstatsclean['header'] || $awstatsclean['headerRead'] == $awstatsclean['headeroƶd']) { + if($awstatsclean['headerRead'] == $awstatsclean['header'] || $awstatsclean['headerRead'] == +$awstatsclean['headerold']) { $cronlog->logAction(CRON_ACTION, LOG_INFO, "Removing awstats configuration ".$awstatsclean['fullentry']." for re-creation"); @unlink($awstatsclean['fullentry']); }