From 9d0baae31b489604deff03c6c5159ab5126cbc27 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 20 Oct 2011 10:04:24 -0400
Subject: [PATCH] Fixed: FS#1808 - Some small bugs in statistics and client selector.
---
server/cron_daily.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/cron_daily.php b/server/cron_daily.php
index 3ffa45d..65516b9 100644
--- a/server/cron_daily.php
+++ b/server/cron_daily.php
@@ -133,7 +133,7 @@
$webalizer_conf_main = '/etc/webalizer/webalizer.conf';
$webalizer_conf = escapeshellcmd($rec['document_root'].'/log/webalizer.conf');
- unlink($statsdir.'/index.php');
+ if(is_file($statsdir.'/index.php')) unlink($statsdir.'/index.php');
if(!@is_file($webalizer_conf)) {
copy($webalizer_conf_main,$webalizer_conf);
--
Gitblit v1.9.1