Fix: les apercus en PNG n'tait pas supprim si il y avait plusieurs pages

This commit is contained in:
Regis Houssin
2006-06-09 12:45:52 +00:00
parent 8179490359
commit 1ec055e1b5

View File

@@ -1926,6 +1926,8 @@ class Commande
$file = $conf->commande->dir_output . "/" . $comref . "/" . $comref . ".pdf";
if (file_exists($file))
{
commande_delete_preview($this->db, $this->id);
if (!dol_delete_file($file))
{
$this->error=$langs->trans("ErrorCanNotDeleteFile",$file);