summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-03-08 11:45:18 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2022-03-10 17:20:29 +0000
commit82f9eab30e6f8b56a620423704bf560f08518d21 (patch)
treea3f6fb97d76361d47e3d09cfec8ae64fd6abb4ed /apps
parent416776df999ad421be0bd8c2979ad1ff4ef24ef7 (diff)
downloadnextcloud-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.php2
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();