mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-04 22:45:56 +01:00
Fixed static analysis issue
This commit is contained in:
@@ -67,8 +67,10 @@ class ErrorDataTable implements DataTableTypeInterface
|
||||
|
||||
//Build the array containing data
|
||||
$data = [];
|
||||
$n = 0;
|
||||
foreach ($options['errors'] as $error) {
|
||||
$data[] = ['error' => $error];
|
||||
$data['error_' . $n] = ['error' => $error];
|
||||
$n++;
|
||||
}
|
||||
|
||||
$dataTable->createAdapter(ArrayAdapter::class, $data);
|
||||
|
||||
Reference in New Issue
Block a user