1
1
Fork 0

Fix variable name typo in index

This commit is contained in:
Hypolite Petovan 2018-01-15 11:26:00 -05:00
parent e36f2bb1fb
commit 99875b15d3

View file

@ -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'];
}
}