Remove redundant page check

This commit is contained in:
James Brooks
2018-06-17 15:57:36 +01:00
parent 4427d083f9
commit 685f39a097

View File

@@ -57,13 +57,7 @@ class StatusPageController extends AbstractApiController
if ($onlyDisruptedDays) {
// In this case, start_date GET parameter means the page
$page = Binput::get('start_date', 0);
if (!is_numeric($page)) {
$page = 0;
}
$page = (int) $page;
$page = (int) Binput::get('start_date', 0);
$allIncidentDays = Incident::where('visible', '>=', (int) !Auth::check())
->select('occurred_at')