From: friendica Date: Sun, 24 Jun 2012 23:51:39 +0000 (-0700) Subject: sidebar photo album list not visible to anybody if user['hidewall'] set X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9528beac34389f8d8f20de1816bca8d516a556cc;p=friendica.git sidebar photo album list not visible to anybody if user['hidewall'] set --- diff --git a/boot.php b/boot.php index ac561edf6c..8aa36f18ab 100644 --- a/boot.php +++ b/boot.php @@ -10,7 +10,7 @@ require_once('include/nav.php'); require_once('include/cache.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); -define ( 'FRIENDICA_VERSION', '3.0.1383' ); +define ( 'FRIENDICA_VERSION', '3.0.1384' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); define ( 'DB_UPDATE_VERSION', 1149 ); diff --git a/mod/photos.php b/mod/photos.php index d96bc135e4..31046565d8 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -38,8 +38,10 @@ function photos_init(&$a) { $o .= '
' . $a->data['user']['username'] . '
'; $o .= '
' . $a->data['user']['username'] . '
'; $o .= ''; - - if(! intval($a->data['user']['hidewall'])) { + + $albums_visible = ((intval($a->data['user']['hidewall']) && (! local_user()) && (! remote_user())) ? false : true); + + if($albums_visible) { $o .= '