From 6d0d2c07d12b22e15086e471d550c57b0891d70f Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Thu, 5 Dec 2024 00:18:13 +0000 Subject: [PATCH] Fix crash in ReplicationController Signed-off-by: Kamil Tekiela --- src/Controllers/Server/ReplicationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controllers/Server/ReplicationController.php b/src/Controllers/Server/ReplicationController.php index ac27da84839..281c1ef6bc6 100644 --- a/src/Controllers/Server/ReplicationController.php +++ b/src/Controllers/Server/ReplicationController.php @@ -75,7 +75,7 @@ public function __invoke(ServerRequest $request): Response $request->getParsedBodyParamAsString('username', ''), $request->getParsedBodyParamAsString('pma_pw', ''), $request->getParsedBodyParamAsString('hostname', ''), - (int) $request->getParsedBodyParamAsString('text_port'), + (int) $request->getParsedBodyParamAsStringOrNull('text_port'), ); }