Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkesselb <mail@danielkesselberg.de>2020-10-08 00:34:37 +0300
committerGitHub <noreply@github.com>2020-10-08 00:34:37 +0300
commit37cbe9284093f57c201ebbef13ef8f0821bed2b2 (patch)
tree0d71ef5fa53083259e92ed0802f8e417a6e1ed6e
parent72b6471de636d023c25a76308d3e68925450ac97 (diff)
parent221e43e0e7d9aa438b3ee42987726472649be6d1 (diff)
Merge pull request #249 from nextcloud/backport/246/stable18v18.0.10
[stable18] Fix num_shares_link_no_password for NC >= 15
-rw-r--r--lib/ShareStatistics.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ShareStatistics.php b/lib/ShareStatistics.php
index 2244c2d..c1be78b 100644
--- a/lib/ShareStatistics.php
+++ b/lib/ShareStatistics.php
@@ -90,17 +90,17 @@ class ShareStatistics {
/**
* @param int $type
- * @param bool $noShareWith
+ * @param bool $noPassword
* @return int
*/
- protected function countShares($type, $noShareWith = false) {
+ protected function countShares($type, $noPassword = false) {
$query = $this->connection->getQueryBuilder();
$query->selectAlias($query->createFunction('COUNT(*)'), 'num_entries')
->from('share')
->where($query->expr()->eq('share_type', $query->createNamedParameter($type)));
- if ($noShareWith) {
- $query->andWhere($query->expr()->isNull('share_with'));
+ if ($noPassword) {
+ $query->andWhere($query->expr()->isNull('password'));
}
$result = $query->execute();