Fix: Plus de plantage si le module ne definie pas la tableau des boxes
This commit is contained in:
parent
831ca9eade
commit
48ad5fd666
@ -365,6 +365,8 @@ class DolibarrModules
|
|||||||
{
|
{
|
||||||
$err=0;
|
$err=0;
|
||||||
|
|
||||||
|
if (is_array($this->boxes))
|
||||||
|
{
|
||||||
foreach ($this->boxes as $key => $value)
|
foreach ($this->boxes as $key => $value)
|
||||||
{
|
{
|
||||||
$titre = $this->boxes[$key][0];
|
$titre = $this->boxes[$key][0];
|
||||||
@ -390,6 +392,7 @@ class DolibarrModules
|
|||||||
$err++;
|
$err++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $err;
|
return $err;
|
||||||
}
|
}
|
||||||
@ -403,6 +406,8 @@ class DolibarrModules
|
|||||||
{
|
{
|
||||||
$err=0;
|
$err=0;
|
||||||
|
|
||||||
|
if (is_array($this->boxes))
|
||||||
|
{
|
||||||
foreach ($this->boxes as $key => $value)
|
foreach ($this->boxes as $key => $value)
|
||||||
{
|
{
|
||||||
$titre = $this->boxes[$key][0];
|
$titre = $this->boxes[$key][0];
|
||||||
@ -414,6 +419,7 @@ class DolibarrModules
|
|||||||
$err++;
|
$err++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $err;
|
return $err;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -72,6 +72,9 @@ class modBoutique extends DolibarrModules
|
|||||||
// Constantes
|
// Constantes
|
||||||
$this->const = array();
|
$this->const = array();
|
||||||
|
|
||||||
|
// Boites
|
||||||
|
$this->boxes = array();
|
||||||
|
|
||||||
// Permissions
|
// Permissions
|
||||||
$this->rights = array();
|
$this->rights = array();
|
||||||
$this->rights_class = 'boutique';
|
$this->rights_class = 'boutique';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user