diff options
author | Tobias Hößl <tobias@hoessl.eu> | 2012-02-26 20:39:37 +0000 |
---|---|---|
committer | Tobias Hößl <tobias@hoessl.eu> | 2012-02-26 20:39:37 +0000 |
commit | fd9c12128afba39d91b81371b240e0cd92f66469 (patch) | |
tree | 64fd90d5130d46463974b9a175327a7f121521dc /mod/profile.php | |
parent | aa92901b11a70c495904d902bfdb4f4e21af8b47 (diff) | |
download | volse-hubzilla-fd9c12128afba39d91b81371b240e0cd92f66469.tar.gz volse-hubzilla-fd9c12128afba39d91b81371b240e0cd92f66469.tar.bz2 volse-hubzilla-fd9c12128afba39d91b81371b240e0cd92f66469.zip |
should probably be a->user['hidewall'] instead of profile['hidewall']
Diffstat (limited to 'mod/profile.php')
-rwxr-xr-x | mod/profile.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/profile.php b/mod/profile.php index eba9874a8..74e1a2302 100755 --- a/mod/profile.php +++ b/mod/profile.php @@ -107,7 +107,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->user['hidewall'] && (! $is_owner) && (! $remote_contact)) { notice( t('Access to this profile has been restricted.') . EOL); return; } @@ -228,10 +228,12 @@ function profile_content(&$a, $update = 0) { intval($a->profile['profile_uid']), dbesc($parents_str) ); + + $items = conv_sort($items,'created'); + } else { + $items = array(); } - $items = conv_sort($items,'created'); - if($is_owner && ! $update) { $o .= get_birthdays(); $o .= get_events(); |