Fixed error on profiles while logged out.

This commit is contained in:
flash 2018-10-28 03:03:53 +01:00
parent 72d72e4c60
commit bb6abe4f33

View file

@ -44,7 +44,7 @@
</div>
</div>
{% if friend_info is defined and (friend_info.subject_relation is not null or friend_info.user_relation is not null) %}
{% if friend_info|length > 0 and (friend_info.subject_relation is not null or friend_info.user_relation is not null) %}
<div class="profile__header__details__relation" title="Since {{ friend_info.relation_created|date('r') }}">
{% if friend_info.subject_relation and friend_info.user_relation %}
Mutual Friends