Fix: Another fix for var not initialized
This commit is contained in:
parent
59e39b5d91
commit
62766288c8
@ -305,6 +305,7 @@ if (empty($reshook))
|
||||
}
|
||||
|
||||
// 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 (! GETPOST('clone_content') && ! GETPOST('clone_prices') )
|
||||
@ -371,6 +372,7 @@ if (empty($reshook))
|
||||
}
|
||||
|
||||
// Delete a product
|
||||
if ($action == 'confirm_delete' && $confirm != 'yes') { $action=''; }
|
||||
if ($action == 'confirm_delete' && $confirm == 'yes')
|
||||
{
|
||||
$object = new Product($db);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user