diff --git a/lib/Config/Populator.php b/lib/Config/Populator.php index defa4c611a..a17a6ccbcd 100644 --- a/lib/Config/Populator.php +++ b/lib/Config/Populator.php @@ -663,7 +663,7 @@ class Populator { private function scheduleTask($type, $datetime) { $task = ScheduledTask::where('type', $type) - ->whereRaw('status = ? OR status IS NULL', [ScheduledTask::STATUS_SCHEDULED]) + ->whereRaw('(status = ? OR status IS NULL)', [ScheduledTask::STATUS_SCHEDULED]) ->findOne(); if ($task) { return true;