]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't check the configvalue for lastLogin which is never null 30236/head
authorJoas Schilling <coding@schilljs.com>
Fri, 10 Dec 2021 15:26:13 +0000 (16:26 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 13 Dec 2021 08:43:13 +0000 (08:43 +0000)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/User/Manager.php

index 7ed80bc5bc29e727bf73dd05ec01aee4c4858203..c59cbaa7b2055395e7803f107e21b26883081bca 100644 (file)
@@ -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();