diff options
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>'; |