Add check whether share.vfs_objects is defined

This commit is contained in:
Bert Van Vreckem 2017-05-09 10:02:14 +02:00
parent 735b337ca6
commit b6fd2a5bbd

View File

@ -57,7 +57,7 @@
{% if share.comment is defined %} {% if share.comment is defined %}
comment = {{ share.comment }} comment = {{ share.comment }}
{% endif %} {% endif %}
{% if share.vfs_objects|length > 0 %} {% if share.vfs_objects is defined and share.vfs_objects|length > 0 %}
vfs objects = {% for obj in share.vfs_objects %}{{obj.name}} {% endfor %} vfs objects = {% for obj in share.vfs_objects %}{{obj.name}} {% endfor %}
{% for obj in share.vfs_objects %} {% for obj in share.vfs_objects %}