mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Show permanent label only for active punishments
This commit is contained in:
parent
a9118a9053
commit
d80d7b2f49
6
info.php
6
info.php
@ -153,12 +153,12 @@ if ($st->execute(array($id))) {
|
||||
$active = $page->active($row);
|
||||
if ($active === true) {
|
||||
$header .= "<span $style class='label label-danger'>Active</span>";
|
||||
} else {
|
||||
$header .= "<span $style class='label label-warning'>Inactive</span>";
|
||||
}
|
||||
if ($permanent) {
|
||||
$header .= "<span $style class='label label-danger'>Permanent</span>";
|
||||
}
|
||||
} else {
|
||||
$header .= "<span $style class='label label-warning'>Inactive</span>";
|
||||
}
|
||||
}
|
||||
$page->print_header(true, $header);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user