diff --git a/modules/stampe/actions.php b/modules/stampe/actions.php index 2bc8a0d9d..244acc951 100755 --- a/modules/stampe/actions.php +++ b/modules/stampe/actions.php @@ -26,7 +26,7 @@ switch (post('op')) { } $print->setTranslation('title', post('title')); - $print->filename = post('filename'); + $print->setTranslation('filename', post('filename')); $print->options = post('options'); $print->order = post('order'); $print->predefined = intval(post('predefined')); @@ -34,7 +34,7 @@ switch (post('op')) { // Gestione file allegati $dbo->delete('zz_files_print', ['id_print' => $id_record]); - $id_files = (array) post('id_files'); + $id_files = !empty(post('id_files')) ? post('id_files') : []; foreach ($id_files as $id_file) { $dbo->insert('zz_files_print', [ 'id_print' => $id_record,