]> git.mxchange.org Git - friendica.git/commitdiff
Check for existence of $contact.photo_menu.edit in frio:contact/entry.tpl
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 26 Nov 2022 20:38:21 +0000 (15:38 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 26 Nov 2022 20:38:21 +0000 (15:38 -0500)
- Address https://github.com/friendica/friendica/issues/11992#issuecomment-1327030221

view/theme/frio/templates/contact/entry.tpl

index 5d29238e736e8a4a3ce5d0df0d8bda7f78f66a7b..17436b57043be91dadd45674d224f5d94fed1004 100644 (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>