Skip to content

Commit

Permalink
Global user settings not set (openemr#7195)
Browse files Browse the repository at this point in the history
add routine to set uninitialized user settings not in globals.
  • Loading branch information
sjpadgett authored Jan 27, 2024
1 parent 4bafa59 commit 174fb4b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions interface/globals.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 174fb4b

Please sign in to comment.