aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/functions_user.inc.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 8b71cf660..97087827f 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -158,17 +158,14 @@ function update_user( $user_id, $mail_address, $status,
function check_login_authorization($guest_allowed = true)
{
- global $user,$lang,$conf,$page;
+ global $user,$lang;
- if ( $user['is_the_guest'])
- {
- if ( $conf['access'] == 'restricted' || !$guest_allowed )
+ if ($user['is_the_guest'] and !$guest_allowed)
{
echo '<div style="text-align:center;">'.$lang['only_members'].'<br />';
echo '<a href="./identification.php">'.$lang['ident_title'].'</a></div>';
exit();
}
- }
}
function setup_style($style)