From 591b7bae43d288410afb3c72e91f1e5c868c0f59 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 1 Jul 2022 11:24:52 +0200 Subject: [PATCH] Fix var --- htdocs/admin/user.php | 2 ++ 1 file changed, 2 insertions(+) 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;