Check configuration, just in case

This commit is contained in:
Ruan 2015-06-07 15:26:33 +02:00
parent fa94244758
commit 16af5f2c15
3 changed files with 6 additions and 6 deletions

View File

@ -57,7 +57,7 @@
</thead>
<tbody>
<?php
global $table_bans, $conn;
global $table_bans, $conn, $show_inactive_bans;
$result = run_query($table_bans);
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
$timeResult = millis_to_date($row['time']);
@ -72,7 +72,7 @@
<?php if ($row['until'] <= 0) {
$expiresResult = 'Permanent Ban';
}
if ($row['active'] == 0) {
if ($show_inactive_bans && $row['active'] == 0) {
$expiresResult .= ' (Unbanned)';
}
echo $expiresResult;

View File

@ -24,7 +24,7 @@
</thead>
<tbody>
<?php
global $table_mutes, $conn;
global $table_mutes, $conn, $show_inactive_bans;
$result = run_query($table_mutes);
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
$timeResult = millis_to_date($row['time']);
@ -39,7 +39,7 @@
<?php if ($row['until'] <= 0) {
$expiresResult = 'Permanent Mute';
}
if ($row['active'] == 0) {
if ($show_inactive_bans && $row['active'] == 0) {
$expiresResult .= ' (Unmuted)';
}
echo $expiresResult;

View File

@ -31,7 +31,7 @@
</thead>
<tbody>
<?php
global $table_warnings, $conn;
global $table_warnings, $conn, $show_inactive_bans;
$result = run_query($table_warnings);
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
$expiresResult = millis_to_date($row['until']);
@ -44,7 +44,7 @@
<?php if ($row['until'] <= 0) {
$expiresResult = 'Permanent Warning';
}
if ($row['active'] == 0) {
if ($show_inactive_bans && $row['active'] == 0) {
$expiresResult .= ' (Expired)';
}
echo $expiresResult;