aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/profile.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/profile.php b/mod/profile.php
index c350aa087..2af6f2429 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -52,8 +52,7 @@ function profile_init(&$a) {
function profile_content(&$a, $update = 0) {
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
- notice( t('Public access denied.') . EOL);
- return;
+ return login();
}