Skip to content

Commit

Permalink
Fixing sql error on voice servers
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan G committed Dec 9, 2013
1 parent ffa5903 commit d9b6571
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion admin/servers.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@
else $sql_limit = '0,15';

// Get total servers
$result_total = @mysql_query("SELECT COUNT(*) AS cnt FROM servers $sql_where") or die('Failed to count servers!');
$result_total = @mysql_query("SELECT
COUNT(*) AS cnt
FROM servers AS s
LEFT JOIN default_games AS d ON
s.defid = d.id
$sql_where") or die('Failed to count servers: '.mysql_error().'!');

$row_srv = mysql_fetch_row($result_total);
$total_servers = $row_srv[0];

Expand Down

0 comments on commit d9b6571

Please sign in to comment.