mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 07:02:34 +01:00
Fixes for importing stripe customers where no customers exist in stripe
This commit is contained in:
parent
40015165c5
commit
81fd33e901
@ -63,7 +63,11 @@ class ImportCustomers
|
||||
$this->addCustomer($customer);
|
||||
}
|
||||
|
||||
$starting_after = end($customers->data)['id'];
|
||||
//handle
|
||||
if(is_array($customers->data) && end($customers->data) && array_key_exists('id', end($customers->data)))
|
||||
$starting_after = end($customers->data)['id'];
|
||||
else
|
||||
break;
|
||||
|
||||
} while ($customers->has_more);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user