From: proller Date: Sat, 28 Jun 2014 18:10:55 +0000 (+0400) Subject: Masterserver: Fix undefined players X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=897c218b96e4eaebb0035c6aedb1585ddb5fb533;p=zefram%2Fminetest%2Fminetest_engine.git Masterserver: Fix undefined players --- diff --git a/util/master/servers.jst b/util/master/servers.jst index 54eea284..586e439c 100644 --- a/util/master/servers.jst +++ b/util/master/servers.jst @@ -1,7 +1,7 @@ {{? !master.no_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}}{{?}}
{{?}}