From e8fa4279fa1eab4ff07751e1e01a9ebb39506990 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 2 Nov 2012 04:20:12 -0700 Subject: [PATCH] no profile pic on photos page if no photos have been uploaded --- mod/photos.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mod/photos.php b/mod/photos.php index 63b093dc37..ced27015b5 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -27,6 +27,11 @@ function photos_init(&$a) { if(! count($r)) return; + $o .= '
'; + $o .= '
' . $a->data['user']['username'] . '
'; + $o .= '
' . $a->data['user']['username'] . '
'; + $o .= '
'; + $a->data['user'] = $r[0]; $sql_extra = permissions_sql($a->data['user']['uid']); @@ -38,11 +43,6 @@ function photos_init(&$a) { if(count($albums)) { $a->data['albums'] = $albums; - $o .= '
'; - $o .= '
' . $a->data['user']['username'] . '
'; - $o .= '
' . $a->data['user']['username'] . '
'; - $o .= '
'; - $albums_visible = ((intval($a->data['user']['hidewall']) && (! local_user()) && (! remote_user())) ? false : true); if($albums_visible) {