From 466a229041247248224be41f61d1936c54f42875 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 21 Aug 2017 08:08:18 +0200 Subject: [PATCH] QueryBasedTable: do not fail without paginator --- library/vendor/ipl/Web/Table/QueryBasedTable.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/vendor/ipl/Web/Table/QueryBasedTable.php b/library/vendor/ipl/Web/Table/QueryBasedTable.php index 76f0dd60..741757a2 100644 --- a/library/vendor/ipl/Web/Table/QueryBasedTable.php +++ b/library/vendor/ipl/Web/Table/QueryBasedTable.php @@ -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;