]> git.mxchange.org Git - friendica.git/commitdiff
Fix variable name typo in index
authorHypolite Petovan <mrpetovan@gmail.com>
Mon, 15 Jan 2018 16:26:00 +0000 (11:26 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Mon, 15 Jan 2018 19:07:17 +0000 (14:07 -0500)
index.php

index fd41cbe0dabd8f679bd24f05e8990817eaf90512..bfd5cda64abb1cc3494113a34eeba7798a4190ff 100644 (file)
--- 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'];
        }
 }