Skip to content

Commit 9320c26

Browse files
committed
fix misnamed variable, close pterodactyl#377
1 parent e9ef78d commit 9320c26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Admin/UserController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function update(Request $request, $id)
143143
{
144144
try {
145145
$repo = new UserRepository;
146-
$user = $repo->update($user, $request->intersect([
146+
$user = $repo->update($id, $request->intersect([
147147
'email', 'password', 'name_first',
148148
'name_last', 'username', 'root_admin',
149149
]));

0 commit comments

Comments
 (0)