mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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
|
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)
|
catch(\Exception $e)
|
||||||
{
|
{
|
||||||
|
|
||||||
return ['message' => $e->getMessage(), 'status_code' => 500];
|
return array_merge($body, ['message' => $e->getMessage(), 'status_code' => 500]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user