From 194b7677a1e2732043b02ac34618cf11a0f9aec6 Mon Sep 17 00:00:00 2001 From: lepool Date: Sun, 1 Apr 2018 22:31:47 +0200 Subject: [PATCH] fix allegati multipli email --- actions.php | 2 +- src/Prints.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actions.php b/actions.php index 837d0d3e7..cb30d3de6 100644 --- a/actions.php +++ b/actions.php @@ -238,7 +238,7 @@ if (filter('op') == 'link_file' || filter('op') == 'unlink_file') { // Allegati del record $selected = []; if (!empty($post['attachments'])) { - $selected = $dbo->fetchArray('SELECT * FROM zz_files WHERE id IN ('.implode($post['attachments']).') AND id_module = '.prepare($id_module).' AND id_record = '.prepare($id_record)); + $selected = $dbo->fetchArray('SELECT * FROM zz_files WHERE id IN ('.implode( "," , $post['attachments']).') AND id_module = '.prepare($id_module).' AND id_record = '.prepare($id_record)); } foreach ($selected as $attachment) { diff --git a/src/Prints.php b/src/Prints.php index 708b5a8f3..c96ab9354 100644 --- a/src/Prints.php +++ b/src/Prints.php @@ -260,7 +260,7 @@ class Prints } // Individuazione delle variabili per la sostituzione - include_once DOCROOT.'/templates/info.php'; + include DOCROOT.'/templates/info.php'; // Generazione dei contenuti della stampa ob_start();