diff options
author | friendica <info@friendica.com> | 2012-06-24 16:51:39 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-24 16:51:39 -0700 |
commit | 9528beac34389f8d8f20de1816bca8d516a556cc (patch) | |
tree | 2172c6e975c907f21810d9de0ea3c3f9c9e58e21 /mod/photos.php | |
parent | 7f3813e9b066ab7290963e378dafd010de5416fe (diff) | |
download | volse-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/photos.php')
-rw-r--r-- | mod/photos.php | 6 |
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>'; |