diff --git a/app/Http/Controllers/Api/Client/Servers/SettingsController.php b/app/Http/Controllers/Api/Client/Servers/SettingsController.php index e84c15910..b939f1680 100644 --- a/app/Http/Controllers/Api/Client/Servers/SettingsController.php +++ b/app/Http/Controllers/Api/Client/Servers/SettingsController.php @@ -35,7 +35,7 @@ class SettingsController extends ClientApiController public function rename(RenameServerRequest $request, Server $server): JsonResponse { $name = $request->input('name'); - $description = $request->input('description') ?? $server->description; + $description = $request->has('description') ? (string) $request->input('description') : $server->description; $this->repository->update($server->id, [ 'name' => $name, 'description' => $description,