diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-08 11:45:18 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2022-03-10 17:20:29 +0000 |
commit | 82f9eab30e6f8b56a620423704bf560f08518d21 (patch) | |
tree | a3f6fb97d76361d47e3d09cfec8ae64fd6abb4ed /apps | |
parent | 416776df999ad421be0bd8c2979ad1ff4ef24ef7 (diff) | |
download | nextcloud-server-82f9eab30e6f8b56a620423704bf560f08518d21.tar.gz nextcloud-server-82f9eab30e6f8b56a620423704bf560f08518d21.zip |
Fix duplicated UUID detection when there are empty uuids
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-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(); |