diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-06-27 21:49:10 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-06-27 21:49:10 +0200 |
commit | 6957b2ea013b27781cc1ccce8b94267006cb917d (patch) | |
tree | 966e5f969d03c55e405088e878736b8dbb3b1b84 /inc/infoutils.php | |
parent | 83666c1bae18becc7f41053ac3ac80444e3681c4 (diff) | |
download | rpg-6957b2ea013b27781cc1ccce8b94267006cb917d.tar.gz rpg-6957b2ea013b27781cc1ccce8b94267006cb917d.tar.bz2 |
check for auth object at certain functions
This is a follow up on the previous patch to disable authtentication without
disabling ACL on backend problems. It fixes a few errors that might occour
in this rare situation.
darcs-hash:20070627194910-7ad00-de5ac10e0d36ecf8906c080e1d3dc1b2fd85b45d.gz
Diffstat (limited to 'inc/infoutils.php')
-rw-r--r-- | inc/infoutils.php | 2 |
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); |