forum and core: fix error 500 when query is empty on search

This commit is contained in:
2018-12-07 13:34:46 +01:00
committed by Skia
parent 65a0b7b2d4
commit 347caa3b6a
3 changed files with 5 additions and 1 deletions

View File

@ -4,9 +4,9 @@
{% block content %}
<div id="forum">
{{ display_search_bar() }}
{% if object_list|length != 0 %}
<br>
{{ display_search_bar() }}
<div class="search-results">
{% for m in object_list %}
{{ display_message(m, user) }}