Przeglądaj źródła

update: fix typo

tokumeikoi 3 lat temu
rodzic
commit
87e61e1b9a
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      app/Http/Controllers/Client/ClientController.php

+ 1 - 3
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.