From c82ff3715ad2c2be8046dc53db1e794e3b1e3aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 2 Mar 2014 03:44:46 +0100 Subject: [PATCH] Fix filtering for suspension type in ChatSuspensionList --- acptemplate/chatSuspensionList.tpl | 2 +- file/lib/acp/page/ChatSuspensionListPage.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/acptemplate/chatSuspensionList.tpl b/acptemplate/chatSuspensionList.tpl index 773dbaa..3e523c7 100644 --- a/acptemplate/chatSuspensionList.tpl +++ b/acptemplate/chatSuspensionList.tpl @@ -83,7 +83,7 @@
diff --git a/file/lib/acp/page/ChatSuspensionListPage.class.php b/file/lib/acp/page/ChatSuspensionListPage.class.php index ee00ed3..5982057 100644 --- a/file/lib/acp/page/ChatSuspensionListPage.class.php +++ b/file/lib/acp/page/ChatSuspensionListPage.class.php @@ -116,7 +116,7 @@ public function readParameters() { if (!$room->permanent) throw new \wcf\system\exception\PermissionDeniedException(); } - if (isset($_REQUEST['suspensionType']) && !empty($_REQUEST['suspensionType'])) $this->filterSuspensionType = intval($_REQUEST['suspensionType']); + if (isset($_REQUEST['suspensionType']) && !empty($_REQUEST['suspensionType'])) $this->filterSuspensionType = \wcf\util\StringUtil::trim($_REQUEST['suspensionType']); // display revoked if (isset($_REQUEST['displayRevoked'])) $this->displayRevoked = intval($_REQUEST['displayRevoked']);