diff --git a/src/paperlist.php b/src/paperlist.php index a889b94e1..ca475dbd2 100644 --- a/src/paperlist.php +++ b/src/paperlist.php @@ -1011,7 +1011,9 @@ private function _sort_etag_anno_groups() { if (!$dt->has_order_anno()) { $any = false; foreach (["#{$etag}", "#{$alt_etag}", "tagval:{$etag}", "tagval:{$alt_etag}"] as $x) { - $any = $any || in_array("edit", $this->_view_options[$x] ?? []); + $any = $any + || (($vol = $this->_view_options[$x] ?? null) + && $vol->get("edit")); } if (!$any) { return [];