2
0
forked from Wavyzz/dolibarr

Using empty instead of isset

I used empty instead of isset, and I fixed some problems of my previous pull request
This commit is contained in:
Givriz
2021-04-12 16:03:56 +02:00
parent ac2cca51c0
commit 7a54e5d346
6 changed files with 25 additions and 26 deletions

View File

@@ -132,7 +132,8 @@ class modDataPolicy extends DolibarrModules {
array('DATAPOLICY_ADHERENT', 'chaine', '', $langs->trans('NUMBER_MONTH_BEFORE_DELETION'), 0),
);
if (isset($conf->global->MAIN_INFO_SOCIETE_COUNTRY)) $country = explode(":", $conf->global->MAIN_INFO_SOCIETE_COUNTRY);
$country = array();
if (!empty($conf->global->MAIN_INFO_SOCIETE_COUNTRY)) $country = explode(":", $conf->global->MAIN_INFO_SOCIETE_COUNTRY);
// Some keys to add into the overwriting translation tables
/* $this->overwrite_translation = array(