From 8506fc9f9f1b18225a1ebe438c4ea47068a56bd2 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 15 Dec 2011 10:06:50 -0500
Subject: [PATCH] Fixed: FS#1915 - The first argument to copy() function cannot be a directory in cron_daily.php on line 232

---
 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 65516b9..388c327 100644
--- a/server/cron_daily.php
+++ b/server/cron_daily.php
@@ -229,7 +229,7 @@
 		mkdir($statsdirold);
 		$files = scandir($statsdir);
 		foreach ($files as $file) {
-			if (substr($file,0,1) != "." && !is_dir($file) && substr($file,0,1) != "w" && substr($file,0,1) != "i") copy("$statsdir"."/"."$file","$statsdirold"."$file");
+			if (substr($file,0,1) != "." && !is_dir("$statsdir"."/"."$file") && substr($file,0,1) != "w" && substr($file,0,1) != "i") copy("$statsdir"."/"."$file","$statsdirold"."$file");
 		}
 	}
 	

--
Gitblit v1.9.1