From 0ef564f67996e37d882f054c105c125743e3a1a0 Mon Sep 17 00:00:00 2001 From: Ruan Date: Wed, 18 Feb 2015 19:16:52 +0200 Subject: [PATCH] Only allow active bans --- bans.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bans.php b/bans.php index f1285f2..e00a44a 100644 --- a/bans.php +++ b/bans.php @@ -7,7 +7,7 @@ // <<-----------------mysql Database Connection------------>> // 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); if (!$retval) {