From 62c8004ec7c360471b96b4faa6128cd207f89bf2 Mon Sep 17 00:00:00 2001
From: Gerrit Uitslag <klapinklapin@gmail.com>
Date: Fri, 14 Feb 2014 14:36:54 +0100
Subject: [PATCH] change default arg value of userinfo in null instead false

---
 inc/common.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inc/common.php b/inc/common.php
index 297c36355..c18f43668 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -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>)';
     }
-- 
GitLab