From e29f0d6dcce4a22be350cde3750740803a15d67c Mon Sep 17 00:00:00 2001 From: gorokh Date: Wed, 3 Jun 2020 19:40:02 +0300 Subject: [PATCH] fix notice --- src/include/class-wc-retailcrm-customers.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/class-wc-retailcrm-customers.php b/src/include/class-wc-retailcrm-customers.php index 06eb1d1..cde4f45 100644 --- a/src/include/class-wc-retailcrm-customers.php +++ b/src/include/class-wc-retailcrm-customers.php @@ -188,7 +188,8 @@ if (!class_exists('WC_Retailcrm_Customers')) : return false; } - $customer = reset($search['customers']); + $arrayCustumers = $search['customers']; + $customer = reset($arrayCustumers); } else { $customer = $search['customer']; }