Fix: missing create object

This commit is contained in:
Regis Houssin 2015-07-14 14:46:53 +02:00
parent 1804dff0b8
commit bb631ff098

View File

@ -161,6 +161,7 @@ $form=new Form($db);
$fullpath=$conf->ecm->dir_output.'/'.$ecmdir->label.'/'.$urlfile;
$file = new stdClass();
$file->section_id=$ecmdir->id;
$file->label=$urlfile;
@ -253,7 +254,7 @@ print '</div>';
if ($_GET['action'] == 'delete_file')
{
print $form->formconfirm($_SERVER["PHP_SELF"].'?section='.urlencode($_GET["section"]), $langs->trans('DeleteFile'), $langs->trans('ConfirmDeleteFile',$urlfile), 'confirm_deletefile', '', 1, 1);
}
if ($_GET["action"] != 'edit')