From f7395ac964efc98bd8652607eff3a8bcd8e320ed Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 29 May 2016 11:28:14 +0200 Subject: [PATCH] Removed obsolete code --- .../install/files/lib/page/MembersListPage.class.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/wcfsetup/install/files/lib/page/MembersListPage.class.php b/wcfsetup/install/files/lib/page/MembersListPage.class.php index 604f59d032..2561203a9d 100644 --- a/wcfsetup/install/files/lib/page/MembersListPage.class.php +++ b/wcfsetup/install/files/lib/page/MembersListPage.class.php @@ -3,7 +3,6 @@ namespace wcf\page; use wcf\data\search\Search; use wcf\data\user\User; use wcf\data\user\UserProfileList; -use wcf\system\database\PostgreSQLDatabase; use wcf\system\exception\IllegalLinkException; use wcf\system\request\LinkHandler; use wcf\system\user\storage\UserStorageHandler; @@ -122,14 +121,7 @@ class MembersListPage extends SortablePage { if (!empty($this->letter)) { if ($this->letter == '#') { - // PostgreSQL - if (WCF::getDB() instanceof PostgreSQLDatabase) { - $this->objectList->getConditionBuilder()->add("SUBSTRING(username FROM 1 for 1) IN ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9')"); - } - else { - // MySQL - $this->objectList->getConditionBuilder()->add("SUBSTRING(username,1,1) IN ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9')"); - } + $this->objectList->getConditionBuilder()->add("SUBSTRING(username,1,1) IN ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9')"); } else { $this->objectList->getConditionBuilder()->add("username LIKE ?", [$this->letter.'%']); -- 2.20.1