aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/ucp.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/ucp.php')
-rwxr-xr-xphpBB/ucp.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/ucp.php b/phpBB/ucp.php
index 80d383e837..2b1e6e0a51 100755
--- a/phpBB/ucp.php
+++ b/phpBB/ucp.php
@@ -301,7 +301,12 @@ switch ($mode)
// Only registered users can go beyond this point
if ($user->data['user_id'] == ANONYMOUS || $user->data['user_type'] == USER_INACTIVE || $user->data['user_type'] == USER_IGNORE)
{
- redirect("index.$phpEx");
+ if ($user->data['user_id'] != ANONYMOUS)
+ {
+ redirect("index.$phpEx");
+ }
+
+ login_box($user->cur_page, '', $user->lang['LOGIN_EXPLAIN_UCP']);
}