updated isOccupancy function

This commit is contained in:
Shreesh Arora
2023-04-05 17:40:02 +05:30
parent 48ab004e55
commit 278f20dbd5
5 changed files with 32 additions and 37 deletions

View File

@@ -159,7 +159,7 @@ class CategoryControllerCore extends FrontController
// get occupancy of the search
$occupancy = Tools::getValue('occupancy');
if (!Validate::isOccupancies($occupancy)) {
if (!Validate::isOccupancy($occupancy)) {
$occupancy = array();
}
$currency = new Currency($this->context->currency->id);
@@ -269,7 +269,7 @@ class CategoryControllerCore extends FrontController
// occupancy of the search
$occupancy = Tools::getValue('occupancy');
if (!Validate::isOccupancies($occupancy)) {
if (!Validate::isOccupancy($occupancy)) {
$occupancy = array();
}
$sort_by = Tools::getValue('sort_by');