mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Merge pull request #3273 from VeekeeFr/patch-1
Fixed rare case of division by 0
This commit is contained in:
commit
8cc92b1d7d
@ -74,7 +74,7 @@ class StatusPageController extends AbstractApiController
|
||||
->values();
|
||||
|
||||
$numIncidentDays = count($allIncidentDays);
|
||||
$numPages = round($numIncidentDays / $appIncidentDays);
|
||||
$numPages = round($numIncidentDays / max($appIncidentDays, 1));
|
||||
|
||||
$selectedDays = $allIncidentDays->slice($page * $appIncidentDays, $appIncidentDays)->all();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user