We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01b0642 commit c9b5cbeCopy full SHA for c9b5cbe
src/Module/Game/Lib/View/Provider/CommunicationProvider.php
@@ -36,7 +36,7 @@ public function setTemplateVariables(GameControllerInterface $game): void
36
$mark = 0;
37
}
38
if (request::getInt('user_mark') !== 0) {
39
- $mark = (int) floor(($newKnPostCount - 1) / GameEnum::KN_PER_SITE) * GameEnum::KN_PER_SITE;
+ $mark = max(0, (int) floor(($newKnPostCount - 1) / GameEnum::KN_PER_SITE) * GameEnum::KN_PER_SITE);
40
41
42
$maxpage = ceil($knPostCount / GameEnum::KN_PER_SITE);
0 commit comments