From: Hypolite Petovan Date: Mon, 15 Jan 2018 16:26:00 +0000 (-0500) Subject: Fix variable name typo in index X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=99875b15d333b22175dcce7c04c30138943a896d;p=friendica.git Fix variable name typo in index --- diff --git a/index.php b/index.php index fd41cbe0da..bfd5cda64a 100644 --- a/index.php +++ b/index.php @@ -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']; } }