Skip to content

Commit

Permalink
Fix rendering
Browse files Browse the repository at this point in the history
I was getting the following error:

	Argument 1 passed to Nette\Utils\Paginator::setPage() must be of the type int, null given (via SmartObject)
  • Loading branch information
jtojnar committed Sep 11, 2019
1 parent 9051f4d commit 5303ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VisualPaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public function loadState(array $params): void {
}
}

$this->getPaginator()->page = $this->page;
$this->getPaginator()->page = ($this->page === NULL ? 1 : $this->page);
$this->getPaginator()->itemsPerPage = $this->itemsPerPage;
$this->page = $this->getPaginator()->page;
$this->itemsPerPage = $this->getPaginator()->itemsPerPage;
Expand Down

0 comments on commit 5303ff0

Please sign in to comment.