diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-03-14 17:58:53 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-03-14 17:58:53 +0000 |
commit | 06e3e0c7b506a637df1ea27c6a8a439756e7139d (patch) | |
tree | 99accf2efb7e3868a6d3356e612052ef24267fb9 /inc | |
parent | 792883c4aaba64146ea38cd62287c96cb8121c1f (diff) | |
download | rpg-06e3e0c7b506a637df1ea27c6a8a439756e7139d.tar.gz rpg-06e3e0c7b506a637df1ea27c6a8a439756e7139d.tar.bz2 |
use $requireGroups constants in auth classes; comments; code improvements
Diffstat (limited to 'inc')
-rw-r--r-- | inc/common.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/inc/common.php b/inc/common.php index 6851cdea3..9ed9e84d4 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1454,13 +1454,14 @@ function shorten($keep, $short, $max, $min = 9, $char = '…') { } /** - * Return the users realname or e-mail address for use + * Return the users real name or e-mail address for use * in page footer and recent changes pages * * @author Andy Webber <dokuwiki AT andywebber DOT com> */ function editorinfo($username) { global $conf; + /* @var DokuWiki_Auth_Plugin $auth */ global $auth; switch($conf['showuseras']) { @@ -1473,7 +1474,7 @@ function editorinfo($username) { return hsc($username); } - if(isset($info) && $info) { + if(!empty($info)) { switch($conf['showuseras']) { case 'username': return hsc($info['name']); @@ -1485,9 +1486,9 @@ function editorinfo($username) { default: return hsc($username); } - } else { - return hsc($username); } + + return hsc($username); } /** |