diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-08 11:45:18 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-08 11:57:33 +0100 |
commit | 65a866556bf871f98ab6486dd104e758c06f039b (patch) | |
tree | 576f05f7a342537ae3baf3fbd9ce33337a59518a /apps/user_ldap/lib/Migration/Version1130Date20211102154716.php | |
parent | 23e8ae15aaea30359a927492155de13c97b311ce (diff) | |
download | nextcloud-server-65a866556bf871f98ab6486dd104e758c06f039b.tar.gz nextcloud-server-65a866556bf871f98ab6486dd104e758c06f039b.zip |
Fix duplicated UUID detection when there are empty uuids
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap/lib/Migration/Version1130Date20211102154716.php')
-rw-r--r-- | apps/user_ldap/lib/Migration/Version1130Date20211102154716.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php b/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php index 2cca72ac493..c92c4c794ae 100644 --- a/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php +++ b/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php @@ -278,7 +278,7 @@ class Version1130Date20211102154716 extends SimpleMigrationStep { ->having($select->expr()->gt($select->func()->count('owncloud_name'), $select->createNamedParameter(1))); $result = $select->executeQuery(); - while ($uuid = $result->fetchOne()) { + while (($uuid = $result->fetchOne()) !== false) { yield $uuid; } $result->closeCursor(); |