Show permanent label only for active punishments

This commit is contained in:
ruan 2016-12-10 09:42:24 +02:00
parent a9118a9053
commit d80d7b2f49
No known key found for this signature in database
GPG Key ID: 062534EE618F498C

View File

@ -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);