Skip to content
Snippets Groups Projects
Commit 8a7e0ee6 authored by Gerrit Uitslag's avatar Gerrit Uitslag
Browse files

update $username as well, when read from _SERVER

parent 60a396c8
No related branches found
No related tags found
No related merge requests found
......@@ -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>)';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment