summaryrefslogtreecommitdiff
path: root/inc/infoutils.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/infoutils.php')
-rw-r--r--inc/infoutils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php
index 255b49ed4..6da344d81 100644
--- a/inc/infoutils.php
+++ b/inc/infoutils.php
@@ -168,7 +168,7 @@ function check(){
global $auth;
msg('You are currently logged in as '.$_SESSION[DOKU_COOKIE]['auth']['user'].' ('.$INFO['userinfo']['name'].')',0);
- $info = $auth->getUserData($_SESSION[DOKU_COOKIE]['auth']['user']);
+ if($auth) $info = $auth->getUserData($_SESSION[DOKU_COOKIE]['auth']['user']);
msg('You are part of the groups '.implode($info['grps'],', '),0);
}else{
msg('You are currently not logged in',0);