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/html.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/html.php')
-rw-r--r-- | inc/html.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/html.php b/inc/html.php index 42457670b..7c7d78ee7 100644 --- a/inc/html.php +++ b/inc/html.php @@ -82,14 +82,14 @@ function html_login(){ </fieldset> </form> <?php - if($auth->canDo('addUser') && actionOK('register')){ + if($auth && $auth->canDo('addUser') && actionOK('register')){ print '<p>'; print $lang['reghere']; print ': <a href="'.wl($ID,'do=register').'" rel="nofollow" class="wikilink1">'.$lang['register'].'</a>'; print '</p>'; } - if ($auth->canDo('modPass') && actionOK('resendpwd')) { + if ($auth && $auth->canDo('modPass') && actionOK('resendpwd')) { print '<p>'; print $lang['pwdforget']; print ': <a href="'.wl($ID,'do=resendpwd').'" rel="nofollow" class="wikilink1">'.$lang['btn_resendpwd'].'</a>'; |