diff --git a/htdocs/contrat/card.php b/htdocs/contrat/card.php index 6e9d5d1bff0..ccd21eecccd 100644 --- a/htdocs/contrat/card.php +++ b/htdocs/contrat/card.php @@ -886,6 +886,7 @@ if (empty($reshook)) $files = dol_dir_list($old_filedir); if (!empty($files)) { + if (!is_dir($new_filedir)) dol_mkdir($new_filedir); foreach ($files as $file) { dol_move($file['fullname'], $new_filedir.'/'.$file['name']);