diff --git a/library/Director/Web/Table/ActivityLogTable.php b/library/Director/Web/Table/ActivityLogTable.php index 0e33f90a2..5460bc236 100644 --- a/library/Director/Web/Table/ActivityLogTable.php +++ b/library/Director/Web/Table/ActivityLogTable.php @@ -62,6 +62,9 @@ protected function fetchQueryRows() { $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();