mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-09 07:17:32 +00:00
Possible fix for PHP incompatibility issue
This commit is contained in:
parent
da57370385
commit
e54fdce3a3
2
bans.php
2
bans.php
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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 }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user