aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmod/profile/views/default/profile/profile_ownerblock.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/profile/views/default/profile/profile_ownerblock.php b/mod/profile/views/default/profile/profile_ownerblock.php
index cfbd62657..77ffc6e21 100755
--- a/mod/profile/views/default/profile/profile_ownerblock.php
+++ b/mod/profile/views/default/profile/profile_ownerblock.php
@@ -14,7 +14,7 @@ if ($vars['entity']) {
} else {
$user = page_owner_entity();
}
-if ($user) {
+if (!$user) {
// no user so we quit view
echo sprintf(elgg_echo('viewfailure'), __FILE__);
return TRUE;