{% set i = 0 %}
- {% for invited_player in invited_list if invited_list|length > 0 %}
+ {% for invited_player in invited_list %}
{% if invited_player.isLoaded() %}
{% set i = i + 1 %}
diff --git a/system/templates/houses.html.twig b/system/templates/houses.html.twig
index 7575a4d3..19c7d9d5 100644
--- a/system/templates/houses.html.twig
+++ b/system/templates/houses.html.twig
@@ -85,17 +85,19 @@ the search criteria and start a new search.
{% set checked = false %}
- {% for id, name in config.towns if id > 0 %}
- {% if ((townId is empty and name is not empty) or id == townId) and not checked %}
- {% set variable = "checked" %}
- {% set checked = true %}
- {% else %}
- {% set variable = "" %}
- {% endif %}
+ {% for id, name in config.towns %}
+ {% if id > 0 %}
+ {% if ((townId is empty and name is not empty) or id == townId) and not checked %}
+ {% set variable = "checked" %}
+ {% set checked = true %}
+ {% else %}
+ {% set variable = "" %}
+ {% endif %}
-
-
-
+
+
+
+ {% endif %}
{% endfor %}