From 995b45bb62c7e454da8d0317553c9f7a0e641ebb Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 10 Dec 2021 16:26:13 +0100 Subject: [PATCH] Don't check the configvalue for lastLogin which is never null Signed-off-by: Joas Schilling --- lib/private/User/Manager.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); -- 2.39.5