Fix: Removed warning
This commit is contained in:
parent
3f09cbec7e
commit
ecb19e2225
@ -133,7 +133,11 @@ class modMyModule extends DolibarrModules
|
|||||||
$this->tabs = array();
|
$this->tabs = array();
|
||||||
|
|
||||||
// Dictionnaries
|
// Dictionnaries
|
||||||
if (! isset($conf->mymodule->enabled)) $conf->mymodule->enabled=0;
|
if (! isset($conf->mymodule->enabled))
|
||||||
|
{
|
||||||
|
$conf->mymodule=new stdClass();
|
||||||
|
$conf->mymodule->enabled=0;
|
||||||
|
}
|
||||||
$this->dictionnaries=array();
|
$this->dictionnaries=array();
|
||||||
/* Example:
|
/* Example:
|
||||||
if (! isset($conf->mymodule->enabled)) $conf->mymodule->enabled=0; // This is to avoid warnings
|
if (! isset($conf->mymodule->enabled)) $conf->mymodule->enabled=0; // This is to avoid warnings
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user