diff --git a/lib/Migration/Version11000Date20250114182030.php b/lib/Migration/Version11000Date20250114182030.php index 22674c99c4..3cf9aa1b82 100644 --- a/lib/Migration/Version11000Date20250114182030.php +++ b/lib/Migration/Version11000Date20250114182030.php @@ -49,12 +49,14 @@ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array ) ->orderBy('lim.id'); $result = $qb1->executeQuery(); - $identifyMethods = []; + $row = $result->fetch(); + if (!$row) { + return; + } $folder = $this->appData->getFolder('/'); $file = $folder->newFile('backup-table-libresign_identify_method.csv'); $maxId = 0; $fp = $file->write(); - $row = $result->fetch(); $identifyMethods[] = $row; fputcsv($fp, array_keys($row)); fputcsv($fp, $row);