mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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…
x
Reference in New Issue
Block a user