mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Ensure square object existing
This commit is contained in:
parent
1b999dd7d9
commit
f11452aea9
@ -271,7 +271,7 @@ class CreditCard implements MethodInterface
|
||||
$errors = $api_response->getErrors();
|
||||
}
|
||||
|
||||
if (property_exists($customers, 'customers')) {
|
||||
if ($customers && property_exists($customers, 'customers')) {
|
||||
return $customers->customers[0]->id;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user