diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/sharebymail/lib/ShareByMailProvider.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index 3704de4309f..e7f1db25a9b 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -1108,6 +1108,7 @@ class ShareByMailProvider implements IShareProvider { )); $cursor = $qb->executeQuery(); + $public = $cursor->rowCount() > 0; $mail = []; while ($row = $cursor->fetch()) { if ($currentAccess === false) { @@ -1121,7 +1122,7 @@ class ShareByMailProvider implements IShareProvider { } $cursor->closeCursor(); - return ['public' => $mail]; + return ['public' => $public, 'mail' => $mail]; } public function getAllShares(): iterable { |