mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Fix duplicated UUID detection when there are empty uuids
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
c6e67322fb
commit
1bb981abd6
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue