Skip to content

Commit 0db3c85

Browse files
committed
Fix SVG when server fullness was over max
1 parent 114a530 commit 0db3c85

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.gitignore

-1
This file was deleted.

dev/html/front/servers/row.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
<li class="aXenServerList_item_players">
4646
{{$calcPlayers = $row['axenserverlist_max_players'] ? round( ($row['axenserverlist_current_players'] * 100) / $row['axenserverlist_max_players'] ) : 0;}}
47+
{{$calcPlayers = $calcPlayers <= 100 ? $calcPlayers : 100;}}
4748

4849
<svg xmlns="http://www.w3.org/2000/svg" class="aXenServerList_item_players_svg" viewBox="0 0 49 40.22">
4950
<path class="aXenServerList_item_players_svg:none" d="M1048.02,1119.34a22.5,22.5,0,1,1,37.15-.28" transform="translate(-1042 -1082)"></path>

sources/GameQ/Protocols/Teamspeak3.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* This file is part of GameQ.
45
*
@@ -122,7 +123,8 @@ public function beforeSend(Server $server)
122123
{
123124

124125
// Check to make sure we have a query_port because it is required
125-
if (!isset($this->options[Server::SERVER_OPTIONS_QUERY_PORT])
126+
if (
127+
!isset($this->options[Server::SERVER_OPTIONS_QUERY_PORT])
126128
|| empty($this->options[Server::SERVER_OPTIONS_QUERY_PORT])
127129
) {
128130
throw new Exception(__METHOD__ . " Missing required setting '" . Server::SERVER_OPTIONS_QUERY_PORT . "'.");

0 commit comments

Comments
 (0)