Fix: Fonctionne en mode register_globals = off
This commit is contained in:
parent
8dc131b7bc
commit
f5451d9c1d
@ -208,22 +208,22 @@ if ($_GET["action"] == 'clone' && $user->rights->produit->creer)
|
|||||||
*/
|
*/
|
||||||
if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes' && $user->rights->produit->supprimer)
|
if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes' && $user->rights->produit->supprimer)
|
||||||
{
|
{
|
||||||
$product = new Product($db);
|
$product = new Product($db);
|
||||||
$product->fetch($id);
|
$product->fetch($_GET["id"]);
|
||||||
$result = $product->delete($id);
|
$result = $product->delete($_GET["id"]);
|
||||||
|
|
||||||
if ($result == 0)
|
if ($result == 0)
|
||||||
{
|
{
|
||||||
llxHeader();
|
llxHeader();
|
||||||
print '<div class="ok">'.$langs->trans("ProductDeleted",$product->ref).'</div>';
|
print '<div class="ok">'.$langs->trans("ProductDeleted",$product->ref).'</div>';
|
||||||
llxFooter();
|
llxFooter();
|
||||||
exit ;
|
exit ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$reload = 0;
|
$reload = 0;
|
||||||
$_GET["action"]='';
|
$_GET["action"]='';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user