From 174fb4bcc5d486645dfa1a05dfb837c73f0b700d Mon Sep 17 00:00:00 2001 From: Jerry Padgett Date: Fri, 26 Jan 2024 19:40:45 -0500 Subject: [PATCH] Global user settings not set (#7195) add routine to set uninitialized user settings not in globals. --- interface/globals.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/interface/globals.php b/interface/globals.php index a884039537b..c4cdd22ad45 100644 --- a/interface/globals.php +++ b/interface/globals.php @@ -434,6 +434,13 @@ function GetCallingScriptName() $GLOBALS[$gl_name] = $gl_value; } } + // Set any user settings that are not also in GLOBALS. + // This is for modules support. + foreach ($gl_user as $setting) { + if (!array_key_exists($setting['setting_label'], $GLOBALS)) { + $GLOBALS[$setting['setting_label']] = $setting['setting_value']; + } + } // Language cleanup stuff. $GLOBALS['language_menu_login'] = false;