This commit is contained in:
Regis Houssin 2006-04-07 12:40:32 +00:00
parent d76c66a568
commit 8367b94111
2 changed files with 4 additions and 4 deletions

View File

@ -262,11 +262,11 @@ class Product
$resql = $this->db->query($sql);
if ($resql == 0)
{
return 0
return 0;
}
else
{
return -1
return -1;
}
}
@ -291,7 +291,7 @@ class Product
else
{
$this->error .= "Impossible de supprimer le produit.\n";
return -1
return -1;
}
}
}

View File

@ -746,7 +746,7 @@ if ($_GET["action"] == '')
}
if ($product->verif_prod_use($id))
{
$prod_use = $product->verif_prod_use($id)
$prod_use = $product->verif_prod_use($id);
}
if ($user->rights->produit->supprimer && $prod_use == 0)