From 994ebd890c7586cd702299e28fd0def4eb2b94cf Mon Sep 17 00:00:00 2001 From: David M Date: Mon, 26 Feb 2007 13:57:28 +0000 Subject: [PATCH] #8282 git-svn-id: file:///svn/phpbb/trunk@7089 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index b9e9716743..b7e6933ae0 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1894,6 +1894,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa $autologin = (!empty($_POST['autologin'])) ? true : false; $viewonline = (!empty($_POST['viewonline'])) ? 0 : 1; $admin = ($admin) ? 1 : 0; + $viewonline = ($admin) ? $user->data['session_viewonline'] : $viewonline; // Check if the supplied username is equal to the one stored within the database if re-authenticating if ($admin && utf8_clean_string($username) != utf8_clean_string($user->data['username']))