Commit 8506fc9f authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#1915 - The first argument to copy() function cannot be a directory...

Fixed: FS#1915 - The first argument to copy() function cannot be a directory in cron_daily.php on line 232
parent 27632463
......@@ -229,7 +229,7 @@ HostAliases="www.'.$domain.' localhost 127.0.0.1"'.$aliasdomain;
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");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment