mirror of
https://github.com/friendica/friendica
synced 2024-11-17 22:23:41 +00:00
Fix variable name typo in index
This commit is contained in:
parent
e36f2bb1fb
commit
99875b15d3
1 changed files with 1 additions and 1 deletions
|
@ -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'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue