mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Fixed static analysis issue
This commit is contained in:
parent
a6d508205b
commit
963079afbf
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue