From 87e61e1b9af57ae12d7e51e0fde4e75eeb9f44ba Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Fri, 2 Dec 2022 13:52:20 +0800 Subject: [PATCH] update: fix typo --- app/Http/Controllers/Client/ClientController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Http/Controllers/Client/ClientController.php b/app/Http/Controllers/Client/ClientController.php index dbaf9e13..ce2f6143 100644 --- a/app/Http/Controllers/Client/ClientController.php +++ b/app/Http/Controllers/Client/ClientController.php @@ -13,9 +13,7 @@ class ClientController extends Controller public function subscribe(Request $request) { $flag = $request->input('flag') - ?? (isset($_SERVER['HTTP_USER_AGENT']) - ? $_SERVER['HTTP_USER_AGENT'] - : ''); + ?? ($_SERVER['HTTP_USER_AGENT'] ?? ''); $flag = strtolower($flag); $user = $request->user; // account not expired and is not banned.