Fix variable name typo in index

2022.09-rc
Hypolite Petovan 2018-01-15 11:26:00 -05:00
rodzic e36f2bb1fb
commit 99875b15d3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -111,7 +111,7 @@ if (x($_SESSION, 'authenticated') && !x($_SESSION, 'language')) {
// we haven't loaded user data yet, but we need user language
$user = dba::selectFirst('user', ['language'], ['uid' => $_SESSION['uid']]);
$_SESSION['language'] = $lang;
if (DBM::is_result($r)) {
if (DBM::is_result($user)) {
$_SESSION['language'] = $user['language'];
}
}