From 183ba3e8ca7f4dce714de4df1c5855b8f79e9de1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 Jun 2012 21:39:44 +0200 Subject: [PATCH] Fix: Another fix for var not initialized --- htdocs/product/fiche.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 8c7192f5a25..4cedfecf2d7 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -304,6 +304,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') ) @@ -370,6 +371,7 @@ if (empty($reshook)) } // Delete a product + if ($action == 'confirm_delete' && $confirm != 'yes') { $action=''; } if ($action == 'confirm_delete' && $confirm == 'yes') { $object = new Product($db);