aboutsummaryrefslogtreecommitdiff
path: root/util/master
diff options
context:
space:
mode:
authorproller <proller@github.com>2014-06-28 22:10:55 +0400
committerproller <proller@github.com>2014-06-28 22:10:55 +0400
commit897c218b96e4eaebb0035c6aedb1585ddb5fb533 (patch)
tree81f460d840a388c899aa61353b00a2cf37550897 /util/master
parentc91f8b1d251c81dcfc398c9ca2a4d79086212839 (diff)
downloadminetest-897c218b96e4eaebb0035c6aedb1585ddb5fb533.tar.gz
minetest-897c218b96e4eaebb0035c6aedb1585ddb5fb533.tar.bz2
minetest-897c218b96e4eaebb0035c6aedb1585ddb5fb533.zip
Masterserver: Fix undefined players
Diffstat (limited to 'util/master')
-rw-r--r--util/master/servers.jst4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/master/servers.jst b/util/master/servers.jst
index 54eea2842..586e439cf 100644
--- a/util/master/servers.jst
+++ b/util/master/servers.jst
@@ -1,7 +1,7 @@
{{? !master.no_total}}
<div class="total">
- Players: {{=it.total.clients}}/{{=it.total_max.clients}}&nbsp;
- Servers: {{=it.total.servers}}/{{=it.total_max.servers}}
+ {{it.total_max && it.total_max.clients > 0}}Players: {{=it.total.clients}}/{{=it.total_max.clients}}&nbsp;{{?}}
+ {{it.total_max && it.total_max.servers > 0}}Servers: {{=it.total.servers}}/{{=it.total_max.servers}}{{?}}
</div>
{{?}}
<table>