From 9a63c8988cb6f4af43951ad3fdbf0ec23a132462 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 9 Dec 2024 11:34:42 -0100 Subject: [PATCH] ignore orphan shares Signed-off-by: Maxence Lange --- lib/Command/SharesFiles.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Command/SharesFiles.php b/lib/Command/SharesFiles.php index f83a27bad..51861672c 100644 --- a/lib/Command/SharesFiles.php +++ b/lib/Command/SharesFiles.php @@ -196,6 +196,10 @@ private function displayShares( $table->render(); foreach ($shareWrappers as $share) { + if (!$share->hasInitiator()) { + continue; + } + if (!$filterRecipient) { $recipient = $share->getInitiator(); $sharedTo = $recipient->getDisplayName();