diff --git a/htdocs/admin/user.php b/htdocs/admin/user.php index 1718d281c7c..6f1012d1af4 100644 --- a/htdocs/admin/user.php +++ b/htdocs/admin/user.php @@ -59,6 +59,8 @@ if (empty($user->admin)) { include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php'; +$reg = array(); + if ($action == 'set_default') { $ret = addDocumentModel($value, $type, $label, $scandir); $res = true;