Skip to content
Snippets Groups Projects
Commit 24b60e9c authored by Marius Burkard's avatar Marius Burkard
Browse files

- fixed problem when running cron_debug.php

- fixed php warning on awstats cron
parent 4666bfeb
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,9 @@ class cronjob_awstats extends cronjob {
}
$statsdirold = $statsdir."/".$awyear."-".$awmonth."/";
mkdir($statsdirold);
if(!is_dir($statsdirold)) {
mkdir($statsdirold);
}
$files = scandir($statsdir);
foreach ($files as $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");
......
......@@ -174,7 +174,7 @@ class cronjob {
}
// child classes may NOT override this!
private function onCompleted() {
protected function onCompleted() {
global $app, $conf;
if($conf['log_priority'] <= LOGLEVEL_DEBUG) print "Called onCompleted() for class " . get_class($this) . "\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment