Removed warnings
This commit is contained in:
parent
5ef3ffbdc6
commit
a0440fbe88
@ -61,9 +61,9 @@ class box_funnel_of_prospection extends ModeleBoxes
|
|||||||
|
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
|
|
||||||
$this->enabled = ($conf->global->MAIN_FEATURES_LEVEL >= 1); // Not enabled by default, still need some work
|
$this->enabled = ($conf->global->MAIN_FEATURES_LEVEL >= 1 ? 1 : 0); // Not enabled by default, still need some work
|
||||||
|
|
||||||
$this->hidden = !($user->rights->projet->lire);
|
$this->hidden = empty($user->rights->projet->lire);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -56,7 +56,7 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" box
|
|||||||
/**
|
/**
|
||||||
* @var boolean Condition to have widget visible (in most cases, permissions)
|
* @var boolean Condition to have widget visible (in most cases, permissions)
|
||||||
*/
|
*/
|
||||||
public $hidden = 0;
|
public $hidden = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int Box definition database ID
|
* @var int Box definition database ID
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user