Skip to content

Commit c9b5cbe

Browse files
committed
fix
1 parent 01b0642 commit c9b5cbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Module/Game/Lib/View/Provider/CommunicationProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function setTemplateVariables(GameControllerInterface $game): void
3636
$mark = 0;
3737
}
3838
if (request::getInt('user_mark') !== 0) {
39-
$mark = (int) floor(($newKnPostCount - 1) / GameEnum::KN_PER_SITE) * GameEnum::KN_PER_SITE;
39+
$mark = max(0, (int) floor(($newKnPostCount - 1) / GameEnum::KN_PER_SITE) * GameEnum::KN_PER_SITE);
4040
}
4141

4242
$maxpage = ceil($knPostCount / GameEnum::KN_PER_SITE);

0 commit comments

Comments
 (0)