From a93ec400c986b529bc1909c9d30317e7c452d547 Mon Sep 17 00:00:00 2001 From: ruan Date: Mon, 14 Sep 2015 19:23:44 +0200 Subject: [PATCH] Display permanent expired bans correctly --- includes/page.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/page.php b/includes/page.php index d1c4258..13fb71c 100644 --- a/includes/page.php +++ b/includes/page.php @@ -214,9 +214,10 @@ class Page { return "N/A"; } if ($row['until'] <= 0) { - return $this->permanent[$this->type]; + $until = $this->permanent[$this->type]; + } else { + $until = $this->millis_to_date($row['until']); } - $until = $this->millis_to_date($row['until']); if ($this->settings->show_inactive_bans && !$row['active']) { $until .= ' ' . $this->expired[$this->type]; }