sforkowany z mirror/friendica
Fix variable name typo in index
rodzic
e36f2bb1fb
commit
99875b15d3
|
@ -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'];
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue