From fc305034f5b229620f5ea55c817adef0530334b7 Mon Sep 17 00:00:00 2001 From: Josef Citrine Date: Wed, 20 Sep 2017 22:32:15 +0100 Subject: [PATCH] Fixed query getting wrong user --- app/Http/Controllers/ArtistsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ArtistsController.php b/app/Http/Controllers/ArtistsController.php index 6880ff70..aaae02e8 100644 --- a/app/Http/Controllers/ArtistsController.php +++ b/app/Http/Controllers/ArtistsController.php @@ -47,7 +47,7 @@ class ArtistsController extends Controller $user = User::whereSlug($slug)->first(); if ($user->redirect_to) { - $newUser = User::find($user->redirect_to)->first(); + $newUser = User::find($user->redirect_to); if ($newUser) { return Redirect::action('ArtistsController@getProfile', [$newUser->slug]);