From 1a4a76c324432fdaf3fe5f83f64e4bc6c9acceb1 Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 5 Nov 2019 00:19:31 +0000 Subject: [PATCH] php... --- ext/ipban/main.php | 2 +- ext/tag_list/main.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/ipban/main.php b/ext/ipban/main.php index bf140695..4a3dd886 100644 --- a/ext/ipban/main.php +++ b/ext/ipban/main.php @@ -54,7 +54,7 @@ class IPBan extends Extension if (empty($_POST['end'])) { $end = null; } else { - $end = date("Y-m-d H:M:S", strtotime(trim($_POST['end']))); + $end = date("Y-m-d H:i:s", strtotime(trim($_POST['end']))); } send_event(new AddIPBanEvent($_POST['ip'], $_POST['reason'], $end)); diff --git a/ext/tag_list/main.php b/ext/tag_list/main.php index 0b0f1b93..66482c18 100644 --- a/ext/tag_list/main.php +++ b/ext/tag_list/main.php @@ -24,7 +24,9 @@ class TagList extends Extension if ($event->page_matches("tags")) { $this->theme->set_navigation($this->build_navigation()); - switch ($event->get_arg(0)) { + if($event->count_args() == 0) $sub = "map"; + else $sub = $event->get_arg(0); + switch ($sub) { default: case 'map': $this->theme->set_heading("Tag Map");