Check for existence of $contact.photo_menu.edit in frio:contact/entry.tpl

- Address https://github.com/friendica/friendica/issues/11992#issuecomment-1327030221
This commit is contained in:
Hypolite Petovan 2022-11-26 15:38:21 -05:00
parent ed7b175491
commit 34418d790d
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<div class="contact-entry-photo mframe" id="contact-entry-photo-{{$contact.id}}">
<div class="contact-photo-image-wrapper hidden-xs">
<a href="{{if $contact.photo_menu.edit}}{{$contact.photo_menu.edit.1}}{{else}}{{$contact.url}}{{/if}}">
<a href="{{if !empty($contact.photo_menu.edit)}}{{$contact.photo_menu.edit.1}}{{else}}{{$contact.url}}{{/if}}">
<img class="contact-photo media-object xl" src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
</a>
</div>