Skip to content

Commit

Permalink
Convert ObjectStorage to array to check if it is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed Jan 24, 2025
1 parent 6d9a29a commit 16acb06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/KitodoAccessViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ protected static function getKitodoDocumentAccessIdsAsArray(ObjectStorage $kitod
{
$accessIds = [];

if (!empty($kitodoDocumentAccess)) {
if (!empty($kitodoDocumentAccess->toArray())) {
foreach ($kitodoDocumentAccess as $document) {
array_push($accessIds, trim($document->getRecordId()));
}
Expand Down

0 comments on commit 16acb06

Please sign in to comment.