diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/photos.php | 2 | ||||
-rw-r--r-- | mod/profile.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/photos.php b/mod/photos.php index 1fb6ee581..71d00ed25 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -769,7 +769,7 @@ function photos_content(&$a) { intval($owner_uid) ); - if(count($r) && $r[0]['hidewall'] && (local_user() !== $owner_uid) && (! remote_contact)) { + if(count($r) && $r[0]['hidewall'] && (local_user() != $owner_uid) && (! $remote_contact)) { notice( t('Access to this item is restricted.') . EOL); return; } diff --git a/mod/profile.php b/mod/profile.php index 4db548577..b80feab34 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -98,7 +98,7 @@ function profile_content(&$a, $update = 0) { $is_owner = ((local_user()) && (local_user() == $a->profile['profile_uid']) ? true : false); - if($a->profile['hidewall'] && (! $is_owner) && (! remote_contact)) { + if($a->profile['hidewall'] && (! $is_owner) && (! $remote_contact)) { notice( t('Access to this profile has been restricted.') . EOL); return; } |