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()), ]