Guest User

Untitled

a guest
Jul 17th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. diff --git a/app/addons/data_feeds/func.php b/app/addons/data_feeds/func.php
  2. index 26f1607..53611ff 100644
  3. --- a/app/addons/data_feeds/func.php
  4. +++ b/app/addons/data_feeds/func.php
  5. @@ -577,7 +577,14 @@ function fn_data_feeds_get_product_categories($product_id, $category_delimiter,
  6.  
  7. return $category;
  8. }
  9. -
  10. +/**
  11. + * Check is shared product with result cached in runtime.
  12. + *
  13. + * @param int $product_id Product identifier.
  14. + * @param int $company_id Company indentifier.
  15. + *
  16. + * @return bool
  17. + */
  18. function fn_data_feeds_is_shared_product($product_id, $company_id)
  19. {
  20. static $product_is_shared = array();
  21. @@ -585,6 +592,5 @@ function fn_data_feeds_is_shared_product($product_id, $company_id)
  22. if (!isset($product_is_shared[$product_id])) {
  23. $product_is_shared[$product_id] = fn_ult_is_shared_product($product_id, $company_id) == 'Y';
  24. }
  25. -
  26. return $product_is_shared[$product_id];
  27. }
Add Comment
Please, Sign In to add comment