Fixed filter on OSCommerce product id from llx_osc_product table - allow 0 as unregistered product
This commit is contained in:
parent
38491743e9
commit
936c260f4d
@ -62,7 +62,7 @@ if ($_GET["action"] == 'vendre' )
|
||||
$oscprod = new Osc_product($db);
|
||||
|
||||
$oscid = $oscprod->get_osc_productid($_POST["idprod"]);
|
||||
if ( $oscid < 0)
|
||||
if ( $oscid <= 0)
|
||||
{
|
||||
$prod = array();
|
||||
$prod['ref'] = $product->ref;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user