1
0
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:
David Bomba 2024-03-13 16:42:33 +11:00
parent 1b999dd7d9
commit f11452aea9

View File

@ -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;
}