Skip to content
Snippets Groups Projects
Commit 393f929b authored by Fabian Galinski's avatar Fabian Galinski :pouting_cat:
Browse files

[BUGFIX] Division by zero in the overviewWithoutCategoriesAction

parent 8109f526
No related branches found
Tags 3.2.4
No related merge requests found
......@@ -131,7 +131,7 @@ class OverviewController extends AbstractController {
/** @noinspection PhpUndefinedMethodInspection */
$newsCount = $this->newsRepository->countAll();
$numberOfPages = ceil($newsCount / $newsPerPage);
$numberOfPages = ($newsPerPage <= 0 ? 0 : ceil($newsCount / $newsPerPage));
if ($this->settings['onlyNewsWithinThisPageSection']) {
/** @noinspection PhpUndefinedMethodInspection */
......
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