Skip to content

Commit

Permalink
Fix: Another fix for var not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jun 8, 2012
1 parent f2365a4 commit 183ba3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/product/fiche.php
Expand Up @@ -304,6 +304,7 @@
}

// 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') )
Expand Down Expand Up @@ -370,6 +371,7 @@
}

// Delete a product
if ($action == 'confirm_delete' && $confirm != 'yes') { $action=''; }
if ($action == 'confirm_delete' && $confirm == 'yes')
{
$object = new Product($db);
Expand Down

0 comments on commit 183ba3e

Please sign in to comment.