projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c91f8b1
)
Masterserver: Fix undefined players
author
proller
<proller@github.com>
Sat, 28 Jun 2014 18:10:55 +0000
(22:10 +0400)
committer
proller
<proller@github.com>
Sat, 28 Jun 2014 18:10:55 +0000
(22:10 +0400)
util/master/servers.jst
patch
|
blob
|
history
diff --git
a/util/master/servers.jst
b/util/master/servers.jst
index 54eea28425134ff564a4a1b5bb8b2eda853d961b..586e439cf02257e813be8e59cdda74bb4f82a3d7 100644
(file)
--- 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>