diff --git a/htdocs/product/photos.php b/htdocs/product/photos.php index a8c1cf6c540..eaf8f4f5d1b 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"]); @@ -104,7 +104,7 @@ if ($_GET["id"] || $_GET["ref"]) dolibarr_fiche_head($head, 'photos', $titre); /* - * Confirmation de la suppression de photo + * Confirmation de la suppression de la propale */ if ($_GET['action'] == 'delete') {