Possible fix for PHP incompatibility issue

This commit is contained in:
Ruan 2015-07-08 07:57:26 +02:00
parent da57370385
commit e54fdce3a3
3 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@
<?php if ($row['until'] <= 0) {
$expiresResult = 'Permanent Ban';
}
if ($show_inactive_bans && $row['active'] == 0) {
if ($show_inactive_bans && !$row['active']) {
$expiresResult .= ' (Unbanned)';
}
echo $expiresResult;

View File

@ -39,7 +39,7 @@
<?php if ($row['until'] <= 0) {
$expiresResult = 'Permanent Mute';
}
if ($show_inactive_bans && $row['active'] == 0) {
if ($show_inactive_bans && !$row['active']) {
$expiresResult .= ' (Unmuted)';
}
echo $expiresResult;

View File

@ -47,14 +47,14 @@
<?php if ($row['until'] <= 0) {
$expiresResult = 'Permanent Warning';
}
if ($show_inactive_bans && $row['active'] == 0) {
if ($show_inactive_bans && !$row['active']) {
$expiresResult .= ' (Expired)';
}
echo $expiresResult;
?>
</td>
<td>
<?php echo $row['warned'] == 1 ? "Yes" : "No"; ?>
<?php echo $row['warned'] ? "Yes" : "No"; ?>
</td>
</tr>
<?php }