summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/lib/Migration/Version1130Date20211102154716.php')
-rw-r--r--apps/user_ldap/lib/Migration/Version1130Date20211102154716.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php b/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php
index 9e9554000d8..024c5801582 100644
--- a/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php
+++ b/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php
@@ -259,7 +259,7 @@ class Version1130Date20211102154716 extends SimpleMigrationStep {
$result = $select->executeQuery();
$idList = [];
- while ($id = $result->fetchOne()) {
+ while (($id = $result->fetchOne()) !== false) {
$idList[] = $id;
}
$result->closeCursor();
@@ -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();