Skip to content

Commit 37631a1

Browse files
lancepiochDaneEveritt
authored andcommitted
Missing return statement (pterodactyl#1673)
Otherwise this errors out with $host not being found
1 parent 1769d19 commit 37631a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Admin/DatabaseController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function create(DatabaseHostFormRequest $request): RedirectResponse
131131
sprintf('There was an error while trying to connect to the host or while executing a query: "%s"', $exception->getMessage())
132132
)->flash();
133133

134-
redirect()->route('admin.databases')->withInput($request->validated());
134+
return redirect()->route('admin.databases')->withInput($request->validated());
135135
} else {
136136
throw $exception;
137137
}

0 commit comments

Comments
 (0)