Created
September 2, 2019 13:01
-
-
Save torunar/f288a47233f1a4ee9f74d7b0c14ca648 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/addons/storefront_rest_api/Tygh/Api/Entities/v40/SraProducts.php b/app/addons/storefront_rest_api/Tygh/Api/Entities/v40/SraProducts.php | |
index 7d2d08091c..f7251279e0 100644 | |
--- a/app/addons/storefront_rest_api/Tygh/Api/Entities/v40/SraProducts.php | |
+++ b/app/addons/storefront_rest_api/Tygh/Api/Entities/v40/SraProducts.php | |
@@ -86,7 +86,7 @@ class SraProducts extends Products | |
$result['data'] = reset($products); | |
} else { | |
$result['data']['products'] = $products; | |
- $result['data']['filters'] = fn_get_filters_products_count($result['data']['params'], $lang_code); | |
+ list($result['data']['filters']) = fn_get_filters_products_count($result['data']['params'], $lang_code); | |
} | |
return $result; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment