Masterserver: Fix undefined players
authorproller <proller@github.com>
Sat, 28 Jun 2014 18:10:55 +0000 (22:10 +0400)
committerproller <proller@github.com>
Sat, 28 Jun 2014 18:10:55 +0000 (22:10 +0400)
util/master/servers.jst

index 54eea28425134ff564a4a1b5bb8b2eda853d961b..586e439cf02257e813be8e59cdda74bb4f82a3d7 100644 (file)
@@ -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>