Commit 64c3eb08 authored by Johan Cwiklinski's avatar Johan Cwiklinski

Fix crontasks

parent a6a46697
......@@ -221,8 +221,8 @@ class CronTask extends CommonDBTM{
'state' => self::STATE_RUNNING,
'lastrun' => new \QueryExpression('DATE_FORMAT(NOW(),\'%Y-%m-%d %H:%i:00\')')
], [
'id' => $this->fields['id'],
'state' => ['NOT', self::STATE_RUNNING]
'id' => $this->fields['id'],
'NOT' => ['state' => self::STATE_RUNNING]
]
);
......
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 to comment