Skip to content

Commit

Permalink
Merge branch '4.6' into 4
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jan 15, 2021
2 parents b1ce613 + f17405e commit 270068f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/QueuedJobService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit 270068f

Please sign in to comment.