Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hfedcba committed Jun 20, 2022
1 parent 53bfa6c commit c2ca3b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function checkAuth($redirectToLogin)

if(!isset($_SESSION['locale']))
{
$settings = hg_get_user_metadata($username);
$settings = hg_get_user_metadata($_SESSION['user']);
if (is_array($settings) && isset($settings['locale'])) $_SESSION['locale'] = array($settings['locale']);
}

Expand Down

0 comments on commit c2ca3b3

Please sign in to comment.