Removed obsolete code
authorMarcel Werk <burntime@woltlab.com>
Sun, 29 May 2016 09:28:14 +0000 (11:28 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 29 May 2016 09:33:07 +0000 (11:33 +0200)
wcfsetup/install/files/lib/page/MembersListPage.class.php

index 604f59d0328c0c1ad4af96388fe0fe7305a11597..2561203a9d3ba2cfb9b04ec93d423c779e5b5e45 100644 (file)
@@ -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.'%']);