mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for stripe importing customers
This commit is contained in:
parent
85c40de5de
commit
26bb11d6e3
@ -67,10 +67,13 @@ class ImportCustomers
|
||||
}
|
||||
|
||||
//handle
|
||||
if(is_array($customers->data) && end($customers->data) && array_key_exists('id', end($customers->data)))
|
||||
$starting_after = end($customers->data)['id'];
|
||||
else
|
||||
break;
|
||||
// if(is_array($customers->data) && end($customers->data) && array_key_exists('id', end($customers->data)))
|
||||
// $starting_after = end($customers->data)['id'];
|
||||
// else
|
||||
// break;
|
||||
|
||||
$starting_after = end($customers->data)['id'];
|
||||
|
||||
|
||||
} while ($customers->has_more);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user