From 99875b15d333b22175dcce7c04c30138943a896d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 15 Jan 2018 11:26:00 -0500 Subject: [PATCH] Fix variable name typo in index --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; } } -- 2.39.5