diff options
| author | Darkelarious <darkelarious@333networks.com> | 2017-10-18 17:31:26 +0200 |
|---|---|---|
| committer | Darkelarious <darkelarious@333networks.com> | 2017-10-18 17:33:17 +0200 |
| commit | 6d197287ba357857adba066c4c0b615ba7ec4b61 (patch) | |
| tree | a3425a6c251f49e739b38f7fec3c011e64aad7bb /lib/MasterWebInterface | |
| parent | 30da109c053fa54b3a2f80dfb6777e3ad7da1b4c (diff) | |
| download | WebInterface-Perl-MS-Perl-6d197287ba357857adba066c4c0b615ba7ec4b61.tar.gz WebInterface-Perl-MS-Perl-6d197287ba357857adba066c4c0b615ba7ec4b61.zip | |
sqlite example in config, fix empty mapnames
Diffstat (limited to 'lib/MasterWebInterface')
| -rwxr-xr-x | lib/MasterWebInterface/Handler/Servers.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MasterWebInterface/Handler/Servers.pm b/lib/MasterWebInterface/Handler/Servers.pm index 306a2c8..9b83a0b 100755 --- a/lib/MasterWebInterface/Handler/Servers.pm +++ b/lib/MasterWebInterface/Handler/Servers.pm @@ -39,6 +39,7 @@ sub serverlist { search => $f->{q}, gamename => $gamename, page => $f->{p}, + filter => 1, ); # game name description in title @@ -94,7 +95,7 @@ sub serverlist { td class => "tc3", title => $l->{description}; a href => "/s/$l->{gamename}", $l->{gamename};end; td class => "tc4", title => $l->{gametype}, $l->{gametype}; td class => "tc5"; txt $l->{numplayers}; txt "/"; txt $l->{maxplayers}; end; - td class => "tc6", title => ( $l->{maptitle} || $l->{mapname}), ($l->{maptitle} || $l->{mapname}); + td class => "tc6", title => ( $l->{maptitle} || $l->{mapname} || "Unknown"), ($l->{maptitle} || $l->{mapname} || "Unknown"); end; }, ); |
