mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes
This commit is contained in:
parent
6689a22f38
commit
d9e482f5b7
@ -292,7 +292,7 @@ class SquarePaymentDriver extends BaseDriver
|
||||
if ($api_response->isSuccess()) {
|
||||
|
||||
//array of WebhookSubscription objects
|
||||
foreach($api_response->getResult()->getSubscriptions() as $subscription)
|
||||
foreach($api_response->getResult()->getSubscriptions() ?? [] as $subscription)
|
||||
{
|
||||
if($subscription->getName() == 'Invoice_Ninja_Webhook_Subscription')
|
||||
return $subscription->getId();
|
||||
@ -301,7 +301,7 @@ class SquarePaymentDriver extends BaseDriver
|
||||
} else {
|
||||
$errors = $api_response->getErrors();
|
||||
nlog($errors);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user