File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ function success(r) {
51
51
h += '<td class="mts_clients">' + e ( s . clients ) + ( s . clients_max ? '/' + e ( s . clients_max ) : '' ) + ( s . clients_top ? ', ' + s . clients_top : '' ) + '</td>' ;
52
52
var mods ;
53
53
if ( s . mods && jQuery . isArray ( s . mods ) ) {
54
- mods = 1 ;
54
+ mods = s . mods . length ;
55
55
}
56
56
h += '<td class="mts_version' + ( mods ? ' mts_ismods' : '' ) + '">' + e ( s . version ) + ' ' + e ( s . gameid ) ;
57
57
if ( mods ) {
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ sub request (;$) {
235
235
$param -> {first } ||= $old -> {first } || $old -> {time } || $param -> {time };
236
236
$param -> {clients_top } = $old -> {clients_top } if $old -> {clients_top } > $param -> {clients };
237
237
$param -> {clients_top } ||= $param -> {clients } || 0;
238
- $param -> {mods } ||= $old -> {mods } unless $ param-> {action } ~~ ' start' ;
238
+ $param -> {mods } ||= $old -> {mods } if $old -> { mods } and !( $ param-> {action } ~~ ' start' ) ;
239
239
delete $param -> {action };
240
240
$listk -> {$param -> {key }} = $param ;
241
241
# printlog Dumper $param;
You can’t perform that action at this time.
0 commit comments