Skip to content

Commit

Permalink
QA: #5969 - Unset the wrong variable
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Dec 8, 2024
1 parent 9447356 commit d970e69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions auth_profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,6 @@ function settings() {
);
}

if (read_config_option('client_timezone_support') == 0) {
unset($settings_user['client_timezone_support']);
}

draw_edit_form(
array(
'config' => array('no_form_tag' => true),
Expand All @@ -412,6 +408,10 @@ function settings() {
html_end_box(true, true);

if (is_view_allowed('graph_settings') == true) {
if (read_config_option('client_timezone_support') == 0) {
unset($settings_user['general']['client_timezone_support']);
}

if (read_config_option('auth_method') != AUTH_METHOD_NONE) {
$settings_user['tree']['default_tree_id']['sql'] = get_allowed_trees(false, true);
}
Expand Down

0 comments on commit d970e69

Please sign in to comment.