aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-24 16:51:39 -0700
committerfriendica <info@friendica.com>2012-06-24 16:51:39 -0700
commit9528beac34389f8d8f20de1816bca8d516a556cc (patch)
tree2172c6e975c907f21810d9de0ea3c3f9c9e58e21 /mod
parent7f3813e9b066ab7290963e378dafd010de5416fe (diff)
downloadvolse-hubzilla-9528beac34389f8d8f20de1816bca8d516a556cc.tar.gz
volse-hubzilla-9528beac34389f8d8f20de1816bca8d516a556cc.tar.bz2
volse-hubzilla-9528beac34389f8d8f20de1816bca8d516a556cc.zip
sidebar photo album list not visible to anybody if user['hidewall'] set
Diffstat (limited to 'mod')
-rw-r--r--mod/photos.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/photos.php b/mod/photos.php
index d96bc135e..31046565d 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -38,8 +38,10 @@ function photos_init(&$a) {
$o .= '<div class="fn">' . $a->data['user']['username'] . '</div>';
$o .= '<div id="profile-photo-wrapper"><img class="photo" style="width: 175px; height: 175px;" src="' . $a->get_cached_avatar_image($a->get_baseurl() . '/photo/profile/' . $a->data['user']['uid'] . '.jpg') . '" alt="' . $a->data['user']['username'] . '" /></div>';
$o .= '</div>';
-
- if(! intval($a->data['user']['hidewall'])) {
+
+ $albums_visible = ((intval($a->data['user']['hidewall']) && (! local_user()) && (! remote_user())) ? false : true);
+
+ if($albums_visible) {
$o .= '<div id="side-bar-photos-albums" class="widget">';
$o .= '<h3>' . '<a href="' . $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '">' . t('Photo Albums') . '</a></h3>';