From c2dcd13759e703fd5ed4ab75fde5ab107b66462a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C4=9F=C4=B1zhan?= Date: Thu, 18 Sep 2025 02:49:19 +0300 Subject: [PATCH] Restore correct JSON and array handling for Servicelicense (#2919) * Restore correct JSON and array handling * Update src/modules/Servicelicense/Server.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/modules/Servicelicense/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Servicelicense/Server.php b/src/modules/Servicelicense/Server.php index 416f16432..0dd2a488b 100644 --- a/src/modules/Servicelicense/Server.php +++ b/src/modules/Servicelicense/Server.php @@ -69,7 +69,7 @@ class Server implements \FOSSBilling\InjectionAwareInterface public function process($data) { - $data = (!is_array($data)) ? json_decode($data ?? '', true) : []; + $data = is_array($data) ? $data : (json_decode($data ?? '', true) ?: []); if (empty($data)) { throw new \LogicException('Invalid request. Parameters missing?', 1000);