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…
Reference in New Issue