mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
QuickTable: gracefully handle missing columns
This commit is contained in:
parent
99dfe54637
commit
5d643534ad
@ -35,7 +35,14 @@ abstract class QuickTable implements Paginatable
|
||||
$firstRow = true;
|
||||
|
||||
foreach ($this->getTitles() as $key => $title) {
|
||||
$val = $row->$key;
|
||||
|
||||
// Support missing columns
|
||||
if (property_exists($row, $key)) {
|
||||
$val = $row->$key;
|
||||
} else {
|
||||
$val = null;
|
||||
}
|
||||
|
||||
$value = null;
|
||||
|
||||
if ($firstRow) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user