aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-26 14:49:56 -0800
committerfriendica <info@friendica.com>2012-02-26 14:49:56 -0800
commit6ddd444afde33337235eab3aa9d6d1fe12bcb7a4 (patch)
tree9a8ed6282b805732251d254cadef124c90c85727 /mod/profile.php
parentb79380f906731ed1aa4dfa540dcf297fe253c904 (diff)
parent4b1de0f538e6d3f48e2a4d1e82522aced6b08129 (diff)
downloadvolse-hubzilla-6ddd444afde33337235eab3aa9d6d1fe12bcb7a4.tar.gz
volse-hubzilla-6ddd444afde33337235eab3aa9d6d1fe12bcb7a4.tar.bz2
volse-hubzilla-6ddd444afde33337235eab3aa9d6d1fe12bcb7a4.zip
Merge pull request #49 from CatoTH/master
Bugfix for del_config
Diffstat (limited to 'mod/profile.php')
-rwxr-xr-xmod/profile.php8
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();