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) { <?php if ($row['until'] <= 0) {
$expiresResult = 'Permanent Ban'; $expiresResult = 'Permanent Ban';
} }
if ($show_inactive_bans && $row['active'] == 0) { if ($show_inactive_bans && !$row['active']) {
$expiresResult .= ' (Unbanned)'; $expiresResult .= ' (Unbanned)';
} }
echo $expiresResult; echo $expiresResult;

View File

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

View File

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