mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-21 20:48:00 +01:00
Fixed query getting wrong user
This commit is contained in:
parent
e844054643
commit
fc305034f5
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue