Skip to content

Commit

Permalink
Merge pull request #1794 from nextcloud/fix/noid/ignore-orphans-share
Browse files Browse the repository at this point in the history
catch undef recipient
  • Loading branch information
ArtificialOwl authored Dec 11, 2024
2 parents 7560f9d + 6df7ecc commit af6395d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Command/SharesFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ private function displayShares(
];

if (!$filterRecipient) {
$def = ($recipient->hasBasedOn()) ? Circle::$DEF_SOURCE[$recipient->getBasedOn()->getSource()] : 'undef';
$row = array_merge(
$row, [
$sharedTo . ' (' . $recipient->getSingleId() . ', '
. Circle::$DEF_SOURCE[$recipient->getBasedOn()->getSource()] . ')',
$sharedTo . ' (' . $recipient->getSingleId() . ', ' . $def . ')',
(($share->getChildId() > 0) ? $share->getChildFileTarget(
) : $share->getFileTarget()),
]
Expand Down

0 comments on commit af6395d

Please sign in to comment.