Skip to content

Commit f3b79e7

Browse files
author
Marius Burkard
committed
Merge branch 'stable-3.1' into 'stable-3.1'
fixed a problem where cronjobs like awstats don't get executed See merge request ispconfig/ispconfig3!663
2 parents ec5b5c0 + 8ce6db5 commit f3b79e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/cronjob.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ protected function onPrepare() {
114114
$next_run = $app->cron->getNextRun(ISPConfigDateTime::dbtime());
115115
$this->_next_run = $next_run;
116116

117-
$app->db->query("REPLACE INTO `sys_cron` (`name`, `last_run`, `next_run`, `running`) VALUES (?, ?, ?, ?)", get_class($this), ($this->_last_run ? $this->_last_run : "#NULL#"), ($next_run === false ? "#NULL#" : $next_run . "'"), ($this->_running == true ? "1" : "0"));
117+
$app->db->query("REPLACE INTO `sys_cron` (`name`, `last_run`, `next_run`, `running`) VALUES (?, ?, ?, ?)", get_class($this), ($this->_last_run ? $this->_last_run : "#NULL#"), ($next_run === false ? "#NULL#" : $next_run), ($this->_running == true ? "1" : "0"));
118118
}
119119
}
120120
}

0 commit comments

Comments
 (0)