diff options
author | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-02-04 00:59:45 +0100 |
---|---|---|
committer | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-02-04 00:59:45 +0100 |
commit | 8a7e0ee6403bb358edf90c2419af066dd79cb2ce (patch) | |
tree | 10c5c654a3c8ba1f8ee849a03ee73ebe3e9563cd | |
parent | 60a396c8ac50f17c2e3f43a9533af86cf6976976 (diff) | |
download | rpg-8a7e0ee6403bb358edf90c2419af066dd79cb2ce.tar.gz rpg-8a7e0ee6403bb358edf90c2419af066dd79cb2ce.tar.bz2 |
update $username as well, when read from _SERVER
-rw-r--r-- | inc/common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php index 053776a41..297c36355 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1451,7 +1451,7 @@ function userinfo($username = false) { 'userinfo' => '' ); if($username === false) { - $data['username'] = $_SERVER['REMOTE_USER']; + $data['username'] = $username = $_SERVER['REMOTE_USER']; $data['name'] = '<bdi>'.hsc($INFO['userinfo']['name']).'</bdi> (<bdi>'.hsc($_SERVER['REMOTE_USER']).'</bdi>)'; } |