From 40134331b5584401b7bd2ed03f99be4bebb8c4ac Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Sun, 23 Oct 2022 19:16:28 +0000 Subject: [PATCH] Fix caching parenthesisation --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {