diff --git a/routes/web.php b/routes/web.php index 1b61799..8804b35 100644 --- a/routes/web.php +++ b/routes/web.php @@ -24,7 +24,7 @@ Route::get('/{tripId?}', function (Request $request, $tripId = null) { if ($cachedData->trip->is_active) { $cachedDataUpdatedAt = new DateTime($cachedData->trip->updated_at); $now = new DateTime(); - if (intval(($now->getTimestamp() - $cachedDataUpdatedAt->getTimestamp()) / 3600) <= ($cachedData->trip->is_tracking) ? 1 : 3) { + if (intval(($now->getTimestamp() - $cachedDataUpdatedAt->getTimestamp()) / 3600) <= (($cachedData->trip->is_tracking) ? 1 : 3)) { return view('tracker', ['trip' => $cachedData->trip, 'showAllCheckins' => ($viewMode === 'all')]); } } else {