diff options
-rw-r--r-- | inc/common.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/common.php b/inc/common.php index e08858665..e5ab385ca 100644 --- a/inc/common.php +++ b/inc/common.php @@ -36,6 +36,11 @@ function pageinfo(){ $info['userinfo'] = $USERINFO; $info['perm'] = auth_quickaclcheck($ID); $info['subscribed'] = is_subscribed($ID,$_SERVER['REMOTE_USER']); + + // if some outside auth were used only REMOTE_USER is set + if(!$info['userinfo']['name']){ + $info['userinfo']['name'] = $_SERVER['REMOTE_USER']; + } }else{ $info['perm'] = auth_aclcheck($ID,'',null); $info['subscribed'] = false; |