aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Migration
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2022-03-10 18:16:25 +0100
committerGitHub <noreply@github.com>2022-03-10 18:16:25 +0100
commit53e30c40bcc7ac9d9d9f81596dd558a47d6cf9db (patch)
tree476d5482cb2e0d9916010cc5822bf2e992d91487 /apps/workflowengine/lib/Migration
parent430bd6b1e2f52faf9c9876ab7666b4032030dca9 (diff)
parentccab35f23f3b102b11f93e1d5e7e2f4fadadb56f (diff)
downloadnextcloud-server-53e30c40bcc7ac9d9d9f81596dd558a47d6cf9db.tar.gz
nextcloud-server-53e30c40bcc7ac9d9d9f81596dd558a47d6cf9db.zip
Merge pull request #31491 from nextcloud/fix/user_ldap-fix-duplicated-empty-uuid-migration
Fix duplicated UUID detection when there are empty uuids
Diffstat (limited to 'apps/workflowengine/lib/Migration')
-rw-r--r--apps/workflowengine/lib/Migration/PopulateNewlyIntroducedDatabaseFields.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Migration/PopulateNewlyIntroducedDatabaseFields.php b/apps/workflowengine/lib/Migration/PopulateNewlyIntroducedDatabaseFields.php
index 019d3ae6bcc..974793e99b2 100644
--- a/apps/workflowengine/lib/Migration/PopulateNewlyIntroducedDatabaseFields.php
+++ b/apps/workflowengine/lib/Migration/PopulateNewlyIntroducedDatabaseFields.php
@@ -57,7 +57,7 @@ class PopulateNewlyIntroducedDatabaseFields implements IRepairStep {
$qb = $this->dbc->getQueryBuilder();
$insertQuery = $qb->insert('flow_operations_scope');
- while ($id = $ids->fetchOne()) {
+ while (($id = $ids->fetchOne()) !== false) {
$insertQuery->values(['operation_id' => $qb->createNamedParameter($id), 'type' => IManager::SCOPE_ADMIN]);
$insertQuery->execute();
}