diff options
author | proller <proller@github.com> | 2014-06-28 22:10:55 +0400 |
---|---|---|
committer | proller <proller@github.com> | 2014-06-28 22:10:55 +0400 |
commit | 897c218b96e4eaebb0035c6aedb1585ddb5fb533 (patch) | |
tree | 81f460d840a388c899aa61353b00a2cf37550897 /util | |
parent | c91f8b1d251c81dcfc398c9ca2a4d79086212839 (diff) | |
download | minetest-897c218b96e4eaebb0035c6aedb1585ddb5fb533.tar.gz minetest-897c218b96e4eaebb0035c6aedb1585ddb5fb533.tar.bz2 minetest-897c218b96e4eaebb0035c6aedb1585ddb5fb533.zip |
Masterserver: Fix undefined players
Diffstat (limited to 'util')
-rw-r--r-- | util/master/servers.jst | 4 |
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}} - Servers: {{=it.total.servers}}/{{=it.total_max.servers}} + {{it.total_max && it.total_max.clients > 0}}Players: {{=it.total.clients}}/{{=it.total_max.clients}} {{?}} + {{it.total_max && it.total_max.servers > 0}}Servers: {{=it.total.servers}}/{{=it.total_max.servers}}{{?}} </div> {{?}} <table> |