Skip to content

Commit

Permalink
Avoid SQL error if settings are fucked.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Sep 28, 2023
1 parent 774eb6c commit 6b8d82e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -5555,6 +5555,8 @@ function assign_review($pid, $reviewer_cid, $type, $extra = []) {
return $reviewId;
} else if ($oldtype === 0) {
$round = $round ?? $this->conf->assignment_round($type === REVIEW_EXTERNAL);
assert($round !== null); // `null` should not happen
$round = $round ?? 0;
if (($new_requester = $extra["requester_contact"] ?? null)) {
$new_requester_cid = $new_requester->contactId;
}
Expand Down

0 comments on commit 6b8d82e

Please sign in to comment.