]> git.mxchange.org Git - friendica.git/commitdiff
should probably be a->user['hidewall'] instead of profile['hidewall']
authorTobias Hößl <tobias@hoessl.eu>
Sun, 26 Feb 2012 20:39:37 +0000 (20:39 +0000)
committerTobias Hößl <tobias@hoessl.eu>
Sun, 26 Feb 2012 20:39:37 +0000 (20:39 +0000)
mod/profile.php

index eba9874a8605d0015954b0b8dbe797ae8e04f5fe..74e1a2302002e8e48d4ed34944e2fb09f69e8447 100755 (executable)
@@ -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();