diff --git a/webapp/controller/MallController.class.php b/webapp/controller/MallController.class.php index 2623716c..4c94c00b 100644 --- a/webapp/controller/MallController.class.php +++ b/webapp/controller/MallController.class.php @@ -85,7 +85,8 @@ class MallController extends BaseAuthedController { $arrPriceFilter = explode('|', $priceFilters); $priceLow = $arrPriceFilter[0]; $priceHigh = $arrPriceFilter[1]; - return "AND (price >= ${priceLow} AND price <= ${priceHigh})"; + return " AND (length(price) >= length('${priceLow}') AND length(price) <= length('${priceHigh}')) " + . " AND (price >= '${priceLow}' AND price <= '${priceHigh}') "; } ), )