From 7f7306b5e577d9bcb36dba031476965059892625 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 14 Oct 2007 12:01:07 +0000 Subject: [PATCH] Ajout confirmation d'effacement d'image --- htdocs/product/photos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/photos.php b/htdocs/product/photos.php index eaf8f4f5d1b..aab60c8527e 100644 --- a/htdocs/product/photos.php +++ b/htdocs/product/photos.php @@ -65,7 +65,7 @@ if ($_FILES['userfile']['size'] > 0 && $_POST["sendit"] && $conf->upload != 0) if ($_REQUEST["action"] == 'confirm_delete' && $_GET["file"] && $_REQUEST['confirm'] == 'yes') { - if($user->rights->produit->creer) + if ($user->rights->produit->creer) { $product = new Product($db); $product->delete_photo($conf->produit->dir_output."/".$_GET["file"]);