Skip to content
Snippets Groups Projects
Commit d61fe706 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Remove warning

parent 2637b307
No related branches found
No related tags found
No related merge requests found
...@@ -759,8 +759,7 @@ class DolibarrModules ...@@ -759,8 +759,7 @@ class DolibarrModules
$val = $this->const[$key][2]; $val = $this->const[$key][2];
$note = $this->const[$key][3]; $note = $this->const[$key][3];
$visible= $this->const[$key][4]; $visible= $this->const[$key][4];
$entity = $this->const[$key][5]; $entity = isset($this->const[$key][5])?$this->const[$key][5]:0;
$entity = ((!empty($entity) || $entity == '0')?$entity:$conf->entity); $entity = ((!empty($entity) || $entity == '0')?$entity:$conf->entity);
$sql = "SELECT count(*)"; $sql = "SELECT count(*)";
......
...@@ -292,7 +292,7 @@ else ...@@ -292,7 +292,7 @@ else
$conf->setValues($db); $conf->setValues($db);
// Current version is $conf->global->MAIN_VERSION_LAST_UPGRADE // Current version is $conf->global->MAIN_VERSION_LAST_UPGRADE
// Version to install is DOL_VERSION // Version to install is DOL_VERSION
$dolibarrlastupgradeversionarray=preg_split('/[.-]/',$conf->global->MAIN_VERSION_LAST_UPGRADE); $dolibarrlastupgradeversionarray=preg_split('/[.-]/',isset($conf->global->MAIN_VERSION_LAST_UPGRADE)?$conf->global->MAIN_VERSION_LAST_UPGRADE:$conf->global->MAIN_VERSION_LAST_INSTALL);
$dolibarrversiontoinstallarray=versiondolibarrarray(); $dolibarrversiontoinstallarray=versiondolibarrarray();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment