Skip to content

Commit

Permalink
Nit.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed May 4, 2021
1 parent 28911c6 commit 6bb866a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/review.php
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ private function view_default_score() {
return $f;
}
foreach ($this->forder as $f) {
if ($f->has_options && $f->view_score >= VIEWSCORE_PC)
if ($f->has_options && $f->view_score >= VIEWSCORE_PC && $f->main_storage)
return $f;
}
return null;
Expand All @@ -696,7 +696,7 @@ function highlighted_main_scores() {
$s = $this->conf->setting_data("pldisplay_default");
if ($s === null) {
$f = $this->view_default_score();
return $f && $f->main_storage ? [$f] : [];
return $f ? [$f] : [];
}
$fs = [];
foreach (PaperSearch::view_generator(SearchSplitter::split_balanced_parens($s)) as $v) {
Expand Down

0 comments on commit 6bb866a

Please sign in to comment.