aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/sharebymail/lib/ShareByMailProvider.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php
index e7f1db25a9b..f1bb3fe94ca 100644
--- a/apps/sharebymail/lib/ShareByMailProvider.php
+++ b/apps/sharebymail/lib/ShareByMailProvider.php
@@ -1108,9 +1108,10 @@ class ShareByMailProvider implements IShareProvider {
));
$cursor = $qb->executeQuery();
- $public = $cursor->rowCount() > 0;
+ $public = false;
$mail = [];
while ($row = $cursor->fetch()) {
+ $public = true;
if ($currentAccess === false) {
$mail[] = $row['share_with'];
} else {