From: Marcel Werk Date: Thu, 9 Dec 2021 16:05:02 +0000 (+0100) Subject: Fixed search for author X-Git-Tag: 5.5.0_Alpha_1~262^2~20 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f48cc668df14689ec5763e1bf477a3f6b9da89ee;p=GitHub%2FWoltLab%2FWCF.git Fixed search for author --- diff --git a/wcfsetup/install/files/lib/system/search/SearchHandler.class.php b/wcfsetup/install/files/lib/system/search/SearchHandler.class.php index 3cfbfd5cd8..bddd77f643 100644 --- a/wcfsetup/install/files/lib/system/search/SearchHandler.class.php +++ b/wcfsetup/install/files/lib/system/search/SearchHandler.class.php @@ -226,7 +226,7 @@ final class SearchHandler FROM wcf" . WCF_N . "_user WHERE username " . (!empty($this->parameters['nameExactly']) ? "= ?" : "LIKE ?"); $statement = WCF::getDB()->prepareStatement($sql, 100); - $statement->execute([$this->username . (empty($this->parameters['nameExactly']) ? '%' : '')]); + $statement->execute([$this->parameters['username'] . (empty($this->parameters['nameExactly']) ? '%' : '')]); $this->userIDs = $statement->fetchAll(\PDO::FETCH_COLUMN); }