tbrehm
2011-12-15 8506fc9f9f1b18225a1ebe438c4ea47068a56bd2
Fixed: FS#1915 - The first argument to copy() function cannot be a directory in cron_daily.php on line 232
1 files modified
2 ■■■ changed files
server/cron_daily.php 2 ●●● patch | view | raw | blame | history
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");
        }
    }