mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
DirectorActivityLog: fix empty activity log exception
fixes #2505: empty activity log causes exception fixes #2506
This commit is contained in:
parent
1caf0f40db
commit
83cc12944d
@ -62,6 +62,9 @@ class ActivityLogTable extends ZfQueryBasedTable
|
||||
{
|
||||
$rows = parent::fetchQueryRows();
|
||||
// Hint -> DESC, that's why they are inverted
|
||||
if (empty($rows)) {
|
||||
return $rows;
|
||||
}
|
||||
$last = $rows[0]->id;
|
||||
$first = $rows[count($rows) - 1]->id;
|
||||
$db = $this->db();
|
||||
|
Loading…
x
Reference in New Issue
Block a user