Skip to content

Commit

Permalink
Define $id before the loop in getPhysicalElements()
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed Jul 2, 2024
1 parent 1d5aee9 commit 49e8ae9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Common/MetsDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,7 @@ private function getFileRepresentation(string $id, SimpleXMLElement $physicalNod
private function getPhysicalElements(array $elementNodes, array $fileUse): array
{
$elements = [];
$id = '';

foreach ($elementNodes as $elementNode) {
$id = (string) $elementNode['ID'];
Expand Down

0 comments on commit 49e8ae9

Please sign in to comment.