summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-02-04 00:59:45 +0100
committerGerrit Uitslag <klapinklapin@gmail.com>2014-02-04 00:59:45 +0100
commit8a7e0ee6403bb358edf90c2419af066dd79cb2ce (patch)
tree10c5c654a3c8ba1f8ee849a03ee73ebe3e9563cd /inc/common.php
parent60a396c8ac50f17c2e3f43a9533af86cf6976976 (diff)
downloadrpg-8a7e0ee6403bb358edf90c2419af066dd79cb2ce.tar.gz
rpg-8a7e0ee6403bb358edf90c2419af066dd79cb2ce.tar.bz2
update $username as well, when read from _SERVER
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php2
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>)';
}