Author Topic: A little enhancements  (Read 1879 times)

smimish

  • Beginner
  • *
  • Posts: 13
A little enhancements
« on: February 02, 2012, 20:28:51 pm »
Hi guys,
I am not sure how to commit to your development branch. However, the following little fix will remove some of the error messages:
file: components\com_virtuemart\helpers\shopfunctionsf.php
replace line 166 into this:
if (VmConfig::get('show_emailfriend', 1) == '1' && !JRequest::getVar('pop') && (isset($product->virtuemart_product_id) && $product->virtuemart_product_id > 0)  ) {

i.e., just to check if the $product->virtuemart_product_id is set before trying to access it.
hope this helps.
 

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10283
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: A little enhancements
« Reply #1 on: February 02, 2012, 20:35:06 pm »
Thanks, but this function is deprecated since 2.0.1
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/