diff --git a/src/Services/QueuedJobService.php b/src/Services/QueuedJobService.php index 0dabf713..271f197f 100644 --- a/src/Services/QueuedJobService.php +++ b/src/Services/QueuedJobService.php @@ -718,7 +718,7 @@ protected function grabMutex(QueuedJobDescriptor $jobDescriptor) $row = DB::query(sprintf($query, Convert::raw2sql($descriptorId)))->first(); - if (!array_key_exists('ID', $row) || !$row['ID']) { + if (!is_array($row) || !array_key_exists('ID', $row) || !$row['ID']) { throw new Exception('Failed to read job lock'); }