mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for update payment methods - Stripe
This commit is contained in:
parent
542cb6b729
commit
48f1db60db
@ -74,7 +74,7 @@ class UpdatePaymentMethods
|
||||
{
|
||||
$sources = $customer->sources;
|
||||
|
||||
if(!$customer || !property_exists($sources, 'data'))
|
||||
if(!$customer || is_null($sources) || !property_exists($sources, 'data'))
|
||||
return;
|
||||
|
||||
foreach ($sources->data as $method) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user