forked from Wavyzz/dolibarr
Fix: Removed warnings
This commit is contained in:
@@ -163,8 +163,8 @@ class Conf
|
||||
$modulename = strtolower($reg[1]);
|
||||
$partname = strtolower($reg[2]);
|
||||
$varname = $partname.'_modules'; // TODO deprecated
|
||||
if (! is_array($this->$varname)) { $this->$varname = array(); } // TODO deprecated
|
||||
if (! is_array($this->modules_parts[$partname])) { $this->modules_parts[$partname] = array(); }
|
||||
if (! isset($this->$varname) || ! is_array($this->$varname)) { $this->$varname = array(); } // TODO deprecated
|
||||
if (! isset($this->modules_parts[$partname]) || ! is_array($this->modules_parts[$partname])) { $this->modules_parts[$partname] = array(); }
|
||||
$arrValue = dol_json_decode($value,true);
|
||||
if (is_array($arrValue) && ! empty($arrValue)) $value = $arrValue;
|
||||
else if (in_array($partname,array('login','menus','triggers'))) $value = '/'.$modulename.'/core/'.$partname.'/';
|
||||
|
||||
@@ -166,7 +166,7 @@ function dol_json_encode($elements)
|
||||
function dol_json_decode($json, $assoc=false)
|
||||
{
|
||||
$out='';
|
||||
$out = unserialize($json); // For compatibility, test if serialized
|
||||
$out = @unserialize($json); // For compatibility, test if serialized
|
||||
if (empty($out)) $out = json_decode($json, $assoc);
|
||||
return $out;
|
||||
}
|
||||
|
||||
@@ -3501,36 +3501,6 @@ function migrate_reload_modules($db,$langs,$conf)
|
||||
$mod->init('noboxes');
|
||||
}
|
||||
}
|
||||
if (! empty($conf->global->MAIN_MODULE_PHENIX))
|
||||
{
|
||||
dolibarr_install_syslog("upgrade2::migrate_reload_modules Reactivate module Phenix");
|
||||
$res=@include_once(DOL_DOCUMENT_ROOT.'/core/modules/modPhenix.class.php');
|
||||
if ($res) {
|
||||
$mod=new modPhenix($db);
|
||||
$mod->remove('noboxes');
|
||||
$mod->init();
|
||||
}
|
||||
}
|
||||
if (! empty($conf->global->MAIN_MODULE_WEBCALENDAR))
|
||||
{
|
||||
dolibarr_install_syslog("upgrade2::migrate_reload_modules Reactivate module Webcalendar");
|
||||
$res=@include_once(DOL_DOCUMENT_ROOT.'/core/modules/modWebcalendar.class.php');
|
||||
if ($res) {
|
||||
$mod=new modWebcalendar($db);
|
||||
$mod->remove('noboxes');
|
||||
$mod->init();
|
||||
}
|
||||
}
|
||||
if (! empty($conf->global->MAIN_MODULE_MANTIS))
|
||||
{
|
||||
dolibarr_install_syslog("upgrade2::migrate_reload_modules Reactivate module Mantis");
|
||||
$res=@include_once(DOL_DOCUMENT_ROOT.'/core/modules/modMantis.class.php');
|
||||
if ($res) {
|
||||
$mod=new modMantis($db);
|
||||
$mod->remove('noboxes');
|
||||
$mod->init();
|
||||
}
|
||||
}
|
||||
if (! empty($conf->global->MAIN_MODULE_SOCIETE))
|
||||
{
|
||||
dolibarr_install_syslog("upgrade2::migrate_reload_modules Reactivate module Societe");
|
||||
|
||||
Reference in New Issue
Block a user