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

change default arg value of userinfo in null instead false

parent 8a7e0ee6
No related branches found
No related tags found
No related merge requests found
......@@ -1429,7 +1429,7 @@ function editorinfo($username) {
*
* @triggers COMMON_USER_LINK
*/
function userinfo($username = false) {
function userinfo($username = null) {
global $conf, $INFO;
/** @var DokuWiki_Auth_Plugin $auth */
global $auth;
......@@ -1450,7 +1450,7 @@ function userinfo($username = false) {
),
'userinfo' => ''
);
if($username === false) {
if($username === null) {
$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