From 5aeacbd7fca9ab5b50010298882dc963c264867e Mon Sep 17 00:00:00 2001 From: AVMG20 Date: Sat, 12 Jun 2021 17:05:54 +0200 Subject: [PATCH] small bug fix where ptero id validation stopped working --- app/Http/Controllers/Admin/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/UserController.php b/app/Http/Controllers/Admin/UserController.php index 4d765c6c..3178a6d5 100644 --- a/app/Http/Controllers/Admin/UserController.php +++ b/app/Http/Controllers/Admin/UserController.php @@ -83,7 +83,7 @@ class UserController extends Controller "role" => Rule::in(['admin', 'mod', 'client', 'member']), ]); - if (is_null($this->pterodactyl->getUser($request->input('pterodactyl_id')))) { + if (empty($this->pterodactyl->getUser($request->input('pterodactyl_id')))) { throw ValidationException::withMessages([ 'pterodactyl_id' => ["User does not exists on pterodactyl's panel"] ]);