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; } }