From e75d7a841006fab143757c8baf2e54fe29bdb47d Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Thu, 6 Feb 2025 19:48:42 +0100 Subject: [PATCH] [ticket/17465] Remove obsolete json_decode PHPBB-17465 --- phpBB/phpbb/ucp/controller/webpush.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/phpBB/phpbb/ucp/controller/webpush.php b/phpBB/phpbb/ucp/controller/webpush.php index 95406840d4..01111f9ca4 100644 --- a/phpBB/phpbb/ucp/controller/webpush.php +++ b/phpBB/phpbb/ucp/controller/webpush.php @@ -133,10 +133,7 @@ class webpush $notification_data = $this->get_anonymous_notifications(); } - // Decode and return data if everything is fine - $data = json_decode($notification_data, true); - - return new JsonResponse($data); + return new JsonResponse($notification_data, 200, [], true); } /**