]> git.mxchange.org Git - friendica.git/commitdiff
Ward against empty template variable in frio:contact/entry.tpl
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 3 Dec 2022 09:17:54 +0000 (04:17 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 3 Dec 2022 09:19:33 +0000 (04:19 -0500)
view/theme/frio/templates/contact/entry.tpl

index 17436b57043be91dadd45674d224f5d94fed1004..de6faa2204838cd5277bca184f2aff6d8cb18a81 100644 (file)
@@ -89,7 +89,7 @@
                        {{* The contact description (e.g. Name, Network, kind of connection and so on *}}
                        <div class="contact-entry-desc">
                                <div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}">
-                                       <h4 class="media-heading"><a href="{{if $contact.photo_menu.edit}}{{$contact.photo_menu.edit.1}}{{else}}{{$contact.url}}{{/if}}">{{$contact.name}}</a>
+                                       <h4 class="media-heading"><a href="{{if !empty($contact.photo_menu.edit)}}{{$contact.photo_menu.edit.1}}{{else}}{{$contact.url}}{{/if}}">{{$contact.name}}</a>
                                        {{if $contact.account_type}} <small class="contact-entry-details" id="contact-entry-accounttype-{{$contact.id}}">({{$contact.account_type}})</small>{{/if}}
                                        {{if $contact.account_type == 'Forum'}}<i class="fa fa-comments-o" aria-hidden="true"></i>{{/if}}
                                        {{* @todo this needs some changing in core because $contact.account_type contains a translated string which may notbe the same in every language *}}