Skip to content

Commit 1724302

Browse files
committed
[BUGFIX] Added null coalescing operator to handle missing 'DEFAULT' fileGrp in METS
1 parent 4b3a130 commit 1724302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Controller/PageViewController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ protected function getMeasures(int $page, MetsDocument $specificDoc = null, $doc
320320
$measureCoordsFromCurrentSite = [];
321321
$measureCounterToMeasureId = [];
322322
$measureLinks = [];
323-
$defaultFileId = $doc->physicalStructureInfo[$currentPhysId]['files']['DEFAULT'];
323+
$defaultFileId = $doc->physicalStructureInfo[$currentPhysId]['files']['DEFAULT'] ?? null;
324324
if ($doc instanceof MetsDocument) {
325325
if (isset($defaultFileId)) {
326326
$musicalStruct = $doc->musicalStructureInfo;

0 commit comments

Comments
 (0)