This commit is contained in:
Laurent Destailleur 2020-09-20 14:34:19 +02:00
parent 2eb46b4900
commit 3f2220bd6f

View File

@ -1012,7 +1012,7 @@ class FormOther
// $boxidactivatedforuser will be array of boxes choosed by user
$selectboxlist = '';
$boxactivated = InfoBox::listBoxes($this->db, 'activated', $areacode, (empty($user->conf->$confuserzone) ?null:$user), array(), 0); // Search boxes of common+user (or common only if user has no specific setup)
$boxactivated = InfoBox::listBoxes($db, 'activated', $areacode, (empty($user->conf->$confuserzone) ?null:$user), array(), 0); // Search boxes of common+user (or common only if user has no specific setup)
$boxidactivatedforuser = array();
foreach ($boxactivated as $box)
@ -1141,7 +1141,7 @@ class FormOther
// Load translation files required by the page
$langs->loadLangs(array("boxes", "projects"));
$emptybox = new ModeleBoxes($this->db);
$emptybox = new ModeleBoxes($db);
$boxlista .= "\n<!-- Box left container -->\n";