Skip to content

Commit ffb1f5e

Browse files
ArtificialOwlAndyScherzinger
authored andcommitted
ignore orphans shares
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent 27f6c53 commit ffb1f5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Command/SharesFiles.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ private function displayShares(
240240
];
241241

242242
if (!$filterRecipient) {
243+
$def = ($recipient->hasBasedOn()) ? Circle::$DEF_SOURCE[$recipient->getBasedOn()->getSource()] : 'undef';
243244
$row = array_merge(
244245
$row, [
245-
$sharedTo . ' (' . $recipient->getSingleId() . ', '
246-
. Circle::$DEF_SOURCE[$recipient->getBasedOn()->getSource()] . ')',
246+
$sharedTo . ' (' . $recipient->getSingleId() . ', ' . $def . ')',
247247
(($share->getChildId() > 0) ? $share->getChildFileTarget(
248248
) : $share->getFileTarget()),
249249
]

0 commit comments

Comments
 (0)