Browse Source

Avoid errors when documents do not have a description

Jordi Boggiano 12 năm trước cách đây
mục cha
commit
4c3a3b8065
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Packagist/WebBundle/Resources/views/macros.html.twig

+ 1 - 1
src/Packagist/WebBundle/Resources/views/macros.html.twig

@@ -8,7 +8,7 @@
                         [Not auto-updated]
                     {% endif %}
                 </h1>
-                {% if package.description %}
+                {% if package.description is defined and package.description %}
                     <p class="package-description">{{ package.description }}</p>
                 {% endif %}
             </li>