summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-02-14 14:36:54 +0100
committerGerrit Uitslag <klapinklapin@gmail.com>2014-02-14 14:36:54 +0100
commit62c8004ec7c360471b96b4faa6128cd207f89bf2 (patch)
tree7928de82c8a5382703e9cbe40216897123880cef
parent8a7e0ee6403bb358edf90c2419af066dd79cb2ce (diff)
downloadrpg-62c8004ec7c360471b96b4faa6128cd207f89bf2.tar.gz
rpg-62c8004ec7c360471b96b4faa6128cd207f89bf2.tar.bz2
change default arg value of userinfo in null instead false
-rw-r--r--inc/common.php4
1 files 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>)';
}