mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-10 20:24:37 -04: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);
|
$this->addCustomer($customer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//handle
|
||||||
|
if(is_array($customers->data) && end($customers->data) && array_key_exists('id', end($customers->data)))
|
||||||
$starting_after = end($customers->data)['id'];
|
$starting_after = end($customers->data)['id'];
|
||||||
|
else
|
||||||
|
break;
|
||||||
|
|
||||||
} while ($customers->has_more);
|
} while ($customers->has_more);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user