Commit 7f8915c1 by Dirk Benkert

fixed error that crashed application when job entity does not exist (like it…

fixed error that crashed application when job entity does not exist (like it does on a new install).
parent f899c370
......@@ -83,7 +83,10 @@ class Cleanup extends AbstractTask implements DelayedTaskInterface {
*/
public function getLastExecutionTimestamp() {
$job = $this->getJob();
if (!$job->executed) {
return $time - 18144000; // now - 1 month if no timestamp is set
}
return $job->executed->format('U');
}
......
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 sign in to comment