Skip to content
Snippets Groups Projects
Commit 06314387 authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

[TASK] Prevent error on pages with no records (after delete)

parent 1a82e954
No related branches found
No related tags found
1 merge request!38Feature upgrade to typo3 11
......@@ -82,8 +82,8 @@ final class QueryBuilderPaginator extends AbstractPaginator {
->count('p.uid')
->execute()->fetchOne();
}
$this->setTotalItems($totalItems);
return $totalItems;
$this->setTotalItems($totalItems ?: 0);
return $totalItems ?: 0;
}
protected function getAmountOfItemsOnCurrentPage(): int {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment