News:

Looking for documentation? Take a look on our wiki

Main Menu

A little enhancements

Started by smimish, February 02, 2012, 20:28:51 PM

Previous topic - Next topic

smimish

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

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/