mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Merge pull request #5915 from turbo124/v5-develop
Fix for regression in Handler.php
This commit is contained in:
commit
474e942cfb
@ -40,12 +40,12 @@ trait SubscriptionHooker
|
||||
RequestOptions::JSON => ['body' => $body], RequestOptions::ALLOW_REDIRECTS => false
|
||||
]);
|
||||
|
||||
return json_decode($response->getBody(),true);
|
||||
return array_merge($body, json_decode($response->getBody(),true));
|
||||
}
|
||||
catch(\Exception $e)
|
||||
{
|
||||
|
||||
return ['message' => $e->getMessage(), 'status_code' => 500];
|
||||
return array_merge($body, ['message' => $e->getMessage(), 'status_code' => 500]);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user