Skip to content

Commit

Permalink
Merge pull request #14 from publons/fix_database_query
Browse files Browse the repository at this point in the history
fix database query
  • Loading branch information
huifeidepangzi authored May 28, 2021
2 parents dd39827 + 1613de3 commit 485aadc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/PublonsReviewsDAO.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,12 @@ function getPublonsReviewsIdByReviewId($reviewId) {
)
);

$returner = isset($result->fields[0]) && $result->fields[0] != 0 ? $result->fields[0] : null;
$row = $result->current();
$publons_reviews_id = $row ? $row->publons_reviews_id : null;

unset($result);

return $returner;
return $publons_reviews_id;
}

/**
Expand Down

0 comments on commit 485aadc

Please sign in to comment.