diff options
-rw-r--r-- | lib/ShareStatistics.php | 8 |
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(); |