summaryrefslogtreecommitdiff
path: root/templates/mod/user.html
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2019-08-10 12:01:07 +1000
committerBenjamin Southall <applemansigloo@gmail.com>2019-08-10 12:01:07 +1000
commit8dfdc5e33514443e463b1accc1053dc986def4d4 (patch)
tree46860a907e32a7a3c10122ba3e8692fee055e5f0 /templates/mod/user.html
parentc8d609ecf15eee27ad393f6d711ead87b99a04c7 (diff)
Based on #157 and #158, revert back to existence checks and length rather than default empty array initialization for ease of reading
Diffstat (limited to 'templates/mod/user.html')
-rw-r--r--templates/mod/user.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/mod/user.html b/templates/mod/user.html
index d72ac535..6cc454d8 100644
--- a/templates/mod/user.html
+++ b/templates/mod/user.html
@@ -87,7 +87,7 @@
</ul>
</form>
-{% if logs|default([])|length > 0 %}
+{% if logs and logslength > 0 %}
<table class="modlog" style="width:600px">
<tr>
<th>{% trans 'IP address' %}</th>