Skip to content

Commit

Permalink
Another error
Browse files Browse the repository at this point in the history
Argument 1 passed to Nette\Utils\Paginator::setItemsPerPage() must be of the type int, null given (via SmartObject)
  • Loading branch information
jtojnar committed Sep 11, 2019
1 parent 5303ff0 commit e8d7a52
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 @@ -233,7 +233,7 @@ public function loadState(array $params): void {
}

$this->getPaginator()->page = ($this->page === NULL ? 1 : $this->page);
$this->getPaginator()->itemsPerPage = $this->itemsPerPage;
$this->getPaginator()->itemsPerPage = ($this->itemsPerPage === NULL ? array_keys(self::$itemsPerPageList)[0] : $this->itemsPerPage);
$this->page = $this->getPaginator()->page;
$this->itemsPerPage = $this->getPaginator()->itemsPerPage;

Expand Down

0 comments on commit e8d7a52

Please sign in to comment.