Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-03-08 13:45:18 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-03-08 13:57:33 +0300
commit65a866556bf871f98ab6486dd104e758c06f039b (patch)
tree576f05f7a342537ae3baf3fbd9ce33337a59518a /apps/user_ldap
parent23e8ae15aaea30359a927492155de13c97b311ce (diff)
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')
-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();