Skip to content

Commit c8b1f24

Browse files
committed
[ticket/17465] Remove obsolete json_decode
PHPBB-17465
1 parent 394cedf commit c8b1f24

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ucp/controller/webpush.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,7 @@ public function notification(): JsonResponse
133133
$notification_data = $this->get_anonymous_notifications();
134134
}
135135

136-
// Decode and return data if everything is fine
137-
$data = json_decode($notification_data, true);
138-
139-
return new JsonResponse($data);
136+
return new JsonResponse($notification_data, 200, [], true);
140137
}
141138

142139
/**

0 commit comments

Comments
 (0)