diff --git a/includes/page.php b/includes/page.php
index bdb4053..522e6ea 100644
--- a/includes/page.php
+++ b/includes/page.php
@@ -19,7 +19,7 @@ class Page {
if (isset($_GET['page'])) {
$page = $_GET['page']; // user input
if (filter_var($page, FILTER_VALIDATE_INT)) {
- $this->page = max(0,(int)$page);
+ $this->page = max(0, (int)$page);
}
}
$this->name = $name;
@@ -240,7 +240,7 @@ class Page {
} else {
$until = $this->millis_to_date($row['until']);
}
- if ($this->settings->show_inactive_bans && $this->active($row) === false) {
+ if ($this->settings->show_inactive_bans && $row['active'] === "0") {
$until .= ' ' . $this->expired[$this->type];
}
return $until;
diff --git a/info.php b/info.php
index f6ae687..07825fd 100644
--- a/info.php
+++ b/info.php
@@ -143,14 +143,13 @@ if ($st->execute(array($id))) {
$name = $info->name();
$permanent = $info->permanent();
- $active = $page->active($row);
$page->name = "$name #$id";
$page->print_title();
if (!($info instanceof KickInfo)) {
$style = 'style="margin-left: 13px; font-size: 16px;"';
- if ($active) {
+ if ($row['active'] === "1") {
$page->name .= "Active";
} else {
$page->name .= "Inactive";
diff --git a/warnings.php b/warnings.php
index 9bc7e61..d201232 100644
--- a/warnings.php
+++ b/warnings.php
@@ -25,7 +25,7 @@ while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
'Warned By' => $page->get_avatar($page->get_banner_name($row), $row['banned_by_uuid']),
'Reason' => $page->clean($row['reason']),
'Warned Until' => $page->expiry($row),
- 'Received Warning' => $page->active($row, 'warned') ? "Yes" : "No",
+ 'Received Warning' => ($row['warned'] === "1") ? "Yes" : "No",
));
}
$page->table_end();