aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-02-26 13:57:28 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-02-26 13:57:28 +0000
commit994ebd890c7586cd702299e28fd0def4eb2b94cf (patch)
treeebfb34d27051df312141603912cd396e244925dd /phpBB
parentec1fec22d9a2ab8ef4cc65dc7d6615789ce5cfc5 (diff)
downloadforums-994ebd890c7586cd702299e28fd0def4eb2b94cf.tar
forums-994ebd890c7586cd702299e28fd0def4eb2b94cf.tar.gz
forums-994ebd890c7586cd702299e28fd0def4eb2b94cf.tar.bz2
forums-994ebd890c7586cd702299e28fd0def4eb2b94cf.tar.xz
forums-994ebd890c7586cd702299e28fd0def4eb2b94cf.zip
#8282
git-svn-id: file:///svn/phpbb/trunk@7089 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions.php1
1 files changed, 1 insertions, 0 deletions
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']))