1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Check for valid bank account property before attempting to iterate

This commit is contained in:
David Bomba 2022-09-02 07:36:41 +10:00
parent 68ff176725
commit 5f3d48e189

View File

@ -74,6 +74,9 @@ class UpdatePaymentMethods
{
$sources = $customer->sources;
if(!property_exists($sources, 'data'))
return;
foreach ($sources->data as $method) {
$token_exists = ClientGatewayToken::where([
'gateway_customer_reference' => $customer->id,