From 18fba299a4e14a1b74b7ae26205f5a4dd4457e0c Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Thu, 20 Jan 2022 21:50:16 +0100 Subject: [PATCH] same --- scripts/import_customers_from_ivt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/import_customers_from_ivt.php b/scripts/import_customers_from_ivt.php index 412fde4ab..5a5ba6734 100644 --- a/scripts/import_customers_from_ivt.php +++ b/scripts/import_customers_from_ivt.php @@ -25,7 +25,7 @@ foreach(IvtCustomerModel::getAll() as $cust) { continue; } foreach(['deleted', 'deletet', 'deleded', 'delete'] as $word) { - if(strtolower($cust->company) == $word || strtolower($cust->surname) == $word || strtolower($cust->firstname) == $word) { + if(strtolower(trim($cust->company)) == $word || strtolower(trim($cust->surname)) == $word || strtolower(trim($cust->firstname)) == $word) { continue 2; } }