From 6df7eccd8068ebec12a8dc08adb25e17e10bb918 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 2 Dec 2024 12:56:39 -0100 Subject: [PATCH] ignore orphans shares Signed-off-by: Maxence Lange --- lib/Command/SharesFiles.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Command/SharesFiles.php b/lib/Command/SharesFiles.php index f83a27bad..efcc49aa8 100644 --- a/lib/Command/SharesFiles.php +++ b/lib/Command/SharesFiles.php @@ -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()), ]