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;
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.'%']);