mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-12-13 19:44:52 +00:00
Possible fix for PHP incompatibility issue
This commit is contained in:
2
bans.php
2
bans.php
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user