diff options
Diffstat (limited to 'mod/profile/views/default/profile/profile_ownerblock.php')
-rwxr-xr-x | mod/profile/views/default/profile/profile_ownerblock.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mod/profile/views/default/profile/profile_ownerblock.php b/mod/profile/views/default/profile/profile_ownerblock.php index c36e22076..cfbd62657 100755 --- a/mod/profile/views/default/profile/profile_ownerblock.php +++ b/mod/profile/views/default/profile/profile_ownerblock.php @@ -13,10 +13,11 @@ if ($vars['entity']) { } } else { $user = page_owner_entity(); - if (!$user) { - // no user so we quit - return TRUE; - } +} +if ($user) { + // no user so we quit view + echo sprintf(elgg_echo('viewfailure'), __FILE__); + return TRUE; } $more_info = ''; |