Skip to content

Commit

Permalink
[ticket/17465] Remove obsolete json_decode
Browse files Browse the repository at this point in the history
PHPBB-17465
  • Loading branch information
marc1706 committed Feb 6, 2025
1 parent 394cedf commit c8b1f24
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ucp/controller/webpush.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ public function notification(): JsonResponse
$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);
}

/**
Expand Down

0 comments on commit c8b1f24

Please sign in to comment.