Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torunar/f288a47233f1a4ee9f74d7b0c14ca648 to your computer and use it in GitHub Desktop.
Save torunar/f288a47233f1a4ee9f74d7b0c14ca648 to your computer and use it in GitHub Desktop.
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