From: Joas Schilling Date: Fri, 10 Dec 2021 15:26:13 +0000 (+0100) Subject: Don't check the configvalue for lastLogin which is never null X-Git-Tag: v23.0.1rc1~28^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F30236%2Fhead;p=nextcloud-server.git Don't check the configvalue for lastLogin which is never null Signed-off-by: Joas Schilling --- diff --git a/lib/private/User/Manager.php b/lib/private/User/Manager.php index 7ed80bc5bc2..c59cbaa7b20 100644 --- a/lib/private/User/Manager.php +++ b/lib/private/User/Manager.php @@ -628,8 +628,7 @@ class Manager extends PublicEmitter implements IUserManager { $queryBuilder->select($queryBuilder->func()->count('*')) ->from('preferences') ->where($queryBuilder->expr()->eq('appid', $queryBuilder->createNamedParameter('login'))) - ->andWhere($queryBuilder->expr()->eq('configkey', $queryBuilder->createNamedParameter('lastLogin'))) - ->andWhere($queryBuilder->expr()->isNotNull('configvalue')); + ->andWhere($queryBuilder->expr()->eq('configkey', $queryBuilder->createNamedParameter('lastLogin'))); $query = $queryBuilder->execute();