Skip to content

Commit

Permalink
pkp/pkp-lib#9102 Fix review report DB fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Jun 16, 2023
1 parent a2143ee commit 9439d01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ReviewReportDAO.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ public function getReviewReport($contextId)
);
$interests = [];
foreach ($assignedReviewerIds as $row) {
if (!array_key_exists($row['reviewer_id'], $interests)) {
$user = Repo::user()->get($row['reviewer_id'], true);
if (!array_key_exists($row->reviewer_id, $interests)) {
$user = Repo::user()->get($row->reviewer_id, true);
$reviewerInterests = $interestManager->getInterestsString($user);
if (!empty($reviewerInterests)) {
$interests[$row['reviewer_id']] = $reviewerInterests;
$interests[$row->reviewer_id] = $reviewerInterests;
}
}
}
Expand Down

0 comments on commit 9439d01

Please sign in to comment.