Merge pull request #1348 from atm-alexis/3.5

Improper use of delete() function and ldap with multientity bug corrections
This commit is contained in:
Laurent Destailleur
2013-12-16 05:26:31 -08:00
4 changed files with 12 additions and 3 deletions

View File

@@ -2457,7 +2457,7 @@ class Commande extends CommonOrder
// On efface le repertoire de pdf provisoire
$comref = dol_sanitizeFileName($this->ref);
if ($conf->commande->dir_output)
if ($conf->commande->dir_output && !empty($this->ref))
{
$dir = $conf->commande->dir_output . "/" . $comref ;
$file = $conf->commande->dir_output . "/" . $comref . "/" . $comref . ".pdf";