Przeglądaj źródła

ensure not to include 'widget/comments.html' when page is not exist

Yuki Takei 9 lat temu
rodzic
commit
e766307fb9

+ 1 - 1
lib/views/crowi-plus/page.html

@@ -37,7 +37,7 @@
 {% endblock %}
 
 {% block content_main_after %}
-  {% if not page.isDeleted() %}
+  {% if page and not page.isDeleted() %}
     {% include 'widget/comments.html' %}
   {% endif %}
 {% endblock %}

+ 1 - 1
lib/views/crowi-plus/page_list.html

@@ -37,7 +37,7 @@
 {% endblock %}
 
 {% block content_main_after %}
-  {% if not page.isDeleted() %}
+  {% if page and not page.isDeleted() %}
     {% include 'widget/comments.html' %}
   {% endif %}
 {% endblock %}