mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
QueryBasedTable: do not fail without paginator
This commit is contained in:
parent
058bcb083d
commit
466a229041
@ -126,7 +126,8 @@ abstract class QueryBasedTable extends Table implements Countable
|
||||
public function isOnFirstPage()
|
||||
{
|
||||
if ($this->paginator === null) {
|
||||
throw new ProgrammingError('Unable to access my paginator');
|
||||
// No paginator? Then there should be only a single page
|
||||
return true;
|
||||
}
|
||||
|
||||
return $this->paginator->getCurrentPage() === 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user