CMS MADE SIMPLE FORGE

CGEcommerceBase

 

[#8453] Probably wrong variable name

avatar
Created By: Tomáš Havlas (tomas.havlas)
Date Submitted: Thu Sep 27 19:39:01 -0400 2012

Assigned To: Robert Campbell (calguy1000)
Version: 1.3.11
CMSMS Version: 1.11.2
Severity: Minor
Resolution: None
State: Open
Summary:
Probably wrong variable name
Detailed Description:
Hello,

I think in file lib/class.cg_ecomm.php on line 208 in condition there is used
variable $res, that is not previously declared:
if( is_object($tmp) && ($res instanceof cg_ecomm_productinfo) )
I think it should be
if( is_object($tmp) && ($tmp instanceof cg_ecomm_productinfo) )

If I'm wrong just close this as Invalid.

Also probalby in help there is wrong parameter described. There is written
{cgecomm_form_addtocart source=Products produc=$num} 
nowhere in code I have seen used that source variable, but on the other hand I
think it was meant to be a supplier?



History