From f52ff467986379b248bb72ea27068e22775f56f5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 8 Jun 2011 23:46:07 +0000 Subject: [PATCH] Fix: Removed a lot of warnings --- htdocs/includes/modules/societe/mod_codeclient_elephant.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/includes/modules/societe/mod_codeclient_elephant.php b/htdocs/includes/modules/societe/mod_codeclient_elephant.php index eba367ba9ed..103f791a6af 100644 --- a/htdocs/includes/modules/societe/mod_codeclient_elephant.php +++ b/htdocs/includes/modules/societe/mod_codeclient_elephant.php @@ -229,8 +229,8 @@ class mod_codeclient_elephant extends ModeleThirdPartyCode { // Get Mask value $mask = ''; - if ($type==0) $mask = $conf->global->COMPANY_ELEPHANT_MASK_CUSTOMER; - if ($type==1) $mask = $conf->global->COMPANY_ELEPHANT_MASK_SUPPLIER; + if ($type==0) $mask = empty($conf->global->COMPANY_ELEPHANT_MASK_CUSTOMER)?'':$conf->global->COMPANY_ELEPHANT_MASK_CUSTOMER; + if ($type==1) $mask = empty($conf->global->COMPANY_ELEPHANT_MASK_SUPPLIER)?'':$conf->global->COMPANY_ELEPHANT_MASK_SUPPLIER; if (! $mask) { $this->error='NotConfigured';