Skip to content

Commit

Permalink
pkp/pkp-lib#5793 Add check to ensure content is designated against an…
Browse files Browse the repository at this point in the history
… existing issue
  • Loading branch information
asmecher committed Apr 29, 2020
1 parent c28ff5a commit 4f74c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/search/ArticleSearch.inc.php
Expand Up @@ -275,7 +275,7 @@ function formatResults($results, $user = null) {
}

// Only display articles from published issues.
if (!$issueCache[$issueId]->getPublished()) continue;
if (!isset($issueCache[$issueId]) || !$issueCache[$issueId]->getPublished()) continue;

// Store the retrieved objects in the result array.
$returner[] = array(
Expand Down

0 comments on commit 4f74c10

Please sign in to comment.