fix indentation
This commit is contained in:
parent
bd59c6b7bc
commit
bf13ca3e53
@ -249,11 +249,11 @@ if (!class_exists('WC_Retailcrm_Base')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$wcCustomer = new WC_Customer($customer_id);
|
$wcCustomer = new WC_Customer($customer_id);
|
||||||
$resp = $client->customersList(array('email' => $wcCustomer->get_billing_email()));
|
$resp = $client->customersList(array('email' => $wcCustomer->get_billing_email()));
|
||||||
|
|
||||||
if ($resp && $resp->isSuccessful() && isset($resp['customers']) && count($resp['customers']) > 0) {
|
if ($resp && $resp->isSuccessful() && isset($resp['customers']) && count($resp['customers']) > 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->customers->createCustomer($customer_id);
|
$this->customers->createCustomer($customer_id);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user