Fixed search for author
authorMarcel Werk <burntime@woltlab.com>
Thu, 9 Dec 2021 16:05:02 +0000 (17:05 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 9 Dec 2021 16:05:02 +0000 (17:05 +0100)
wcfsetup/install/files/lib/system/search/SearchHandler.class.php

index 3cfbfd5cd8038f1b6c9a8a3d0825e18611dcbf24..bddd77f6437d5528830ab1b0849df435396e2997 100644 (file)
@@ -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);
             }