From: proller Date: Sat, 28 Jun 2014 18:10:55 +0000 (+0400) Subject: Masterserver: Fix undefined players X-Git-Tag: 0.4.10~30 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=897c218b96e4eaebb0035c6aedb1585ddb5fb533;p=oweals%2Fminetest.git Masterserver: Fix undefined players --- 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}}
- 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}}{{?}}
{{?}}