mirror of
https://github.com/friendica/friendica
synced 2024-11-18 00:23:47 +00:00
no profile pic on photos page if no photos have been uploaded
This commit is contained in:
parent
ce932dfdaf
commit
e8fa4279fa
1 changed files with 5 additions and 5 deletions
|
@ -27,6 +27,11 @@ function photos_init(&$a) {
|
|||
if(! count($r))
|
||||
return;
|
||||
|
||||
$o .= '<div class="vcard">';
|
||||
$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>';
|
||||
|
||||
$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 .= '<div class="vcard">';
|
||||
$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>';
|
||||
|
||||
$albums_visible = ((intval($a->data['user']['hidewall']) && (! local_user()) && (! remote_user())) ? false : true);
|
||||
|
||||
if($albums_visible) {
|
||||
|
|
Loading…
Reference in a new issue