From ff92e4471cae3f96af2bbb87480322dc850812c6 Mon Sep 17 00:00:00 2001 From: Thijmen Stavenuiter Date: Fri, 16 Apr 2021 23:24:38 +0200 Subject: [PATCH] Fix SQL query upon searching in Marketplace --- .../eu/habbo/habbohotel/catalog/marketplace/MarketPlace.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/catalog/marketplace/MarketPlace.java b/src/main/java/com/eu/habbo/habbohotel/catalog/marketplace/MarketPlace.java index 031ff4f6..9801eae2 100644 --- a/src/main/java/com/eu/habbo/habbohotel/catalog/marketplace/MarketPlace.java +++ b/src/main/java/com/eu/habbo/habbohotel/catalog/marketplace/MarketPlace.java @@ -122,7 +122,7 @@ public class MarketPlace { query += " AND CEIL(price + (price / 100)) <= " + maxPrice; } if (search.length() > 0) { - query += " AND bi.public_name LIKE ? OR ci.catalog_name LIKE ?"; + query += " AND ( bi.public_name LIKE ? OR ci.catalog_name LIKE ? ) "; } query += " GROUP BY base_item_id, ltd_data";