From 6957b2ea013b27781cc1ccce8b94267006cb917d Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 27 Jun 2007 21:49:10 +0200 Subject: 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 --- inc/html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/html.php') 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(){ canDo('addUser') && actionOK('register')){ + if($auth && $auth->canDo('addUser') && actionOK('register')){ print '

'; print $lang['reghere']; print ': '.$lang['register'].''; print '

'; } - if ($auth->canDo('modPass') && actionOK('resendpwd')) { + if ($auth && $auth->canDo('modPass') && actionOK('resendpwd')) { print '

'; print $lang['pwdforget']; print ': '.$lang['btn_resendpwd'].''; -- cgit v1.2.3