1day2die преди 3 години
родител
ревизия
5d53353521
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Http/Controllers/Api/UserController.php

+ 1 - 1
app/Http/Controllers/Api/UserController.php

@@ -284,7 +284,7 @@ class UserController extends Controller
             'pterodactyl_id' => $response->json()['attributes']['id']
         ]);
         //INCREMENT REFERRAL-USER CREDITS
-        if(!empty($request->input("referral_code")){
+        if(!empty($request->input("referral_code"))){
             $ref_code = $request->input("referral_code");
             $new_user = $user->id;
             if($ref_user = User::query()->where('referral_code', '=', $ref_code)->first()) {