Only allow active bans

This commit is contained in:
Ruan 2015-02-18 19:16:52 +02:00
parent 1b5f1ee7c5
commit 0ef564f679

View File

@ -7,7 +7,7 @@
// <<-----------------mysql Database Connection------------>> // // <<-----------------mysql Database Connection------------>> //
require 'includes/data/database.php'; require 'includes/data/database.php';
$sql = 'SELECT time,until,reason,name,banned_by_name FROM bans INNER JOIN history on bans.uuid = history.uuid ORDER BY time DESC LIMIT 20'; $sql = 'SELECT time,until,reason,name,banned_by_name FROM bans WHERE active=1 INNER JOIN history on bans.uuid=history.uuid ORDER BY time DESC LIMIT 20';
$retval = mysql_query($sql, $conn); $retval = mysql_query($sql, $conn);
if (!$retval) { if (!$retval) {