Fixed: FS#1915 - The first argument to copy() function cannot be a directory in cron_daily.php on line 232
| | |
| | | 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"); |
| | | } |
| | | } |
| | | |