From: friendica Date: Fri, 2 Nov 2012 11:20:12 +0000 (-0700) Subject: no profile pic on photos page if no photos have been uploaded X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e8fa4279fa1eab4ff07751e1e01a9ebb39506990;p=friendica.git no profile pic on photos page if no photos have been uploaded --- 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) {