Fix: Another fix for var not initialized

This commit is contained in:
Laurent Destailleur 2012-06-08 21:39:44 +02:00
parent f2365a4c8d
commit 183ba3e8ca

View File

@ -304,6 +304,7 @@ if (empty($reshook))
} }
// Action clone object // Action clone object
if ($action == 'confirm_clone' && $confirm != 'yes') { $action=''; }
if ($action == 'confirm_clone' && $confirm == 'yes' && ($user->rights->produit->creer || $user->rights->service->creer)) if ($action == 'confirm_clone' && $confirm == 'yes' && ($user->rights->produit->creer || $user->rights->service->creer))
{ {
if (! GETPOST('clone_content') && ! GETPOST('clone_prices') ) if (! GETPOST('clone_content') && ! GETPOST('clone_prices') )
@ -370,6 +371,7 @@ if (empty($reshook))
} }
// Delete a product // Delete a product
if ($action == 'confirm_delete' && $confirm != 'yes') { $action=''; }
if ($action == 'confirm_delete' && $confirm == 'yes') if ($action == 'confirm_delete' && $confirm == 'yes')
{ {
$object = new Product($db); $object = new Product($db);