diff --git a/module/form/changes.md b/module/form/changes.md index 28632243..30ecba4b 100644 --- a/module/form/changes.md +++ b/module/form/changes.md @@ -1,3 +1,5 @@ +# Version 4.6 +- Correction de syntaxe. # Version 4.5 - Remplacement du nom générique de classe dans les vues. # Version 4.4 diff --git a/module/form/enum.json b/module/form/enum.json index bdc0db85..5c56b863 100644 --- a/module/form/enum.json +++ b/module/form/enum.json @@ -1 +1 @@ -{"name":"form","realName":"Formulaire","version":"4.1","update":"0.0","delete":true,"dataDirectory":""} \ No newline at end of file +{"name":"form","realName":"Formulaire","version":"4.6","update":"0.0","delete":true,"dataDirectory":""} \ No newline at end of file diff --git a/module/form/form.php b/module/form/form.php index 3b0bdff1..20e9e167 100644 --- a/module/form/form.php +++ b/module/form/form.php @@ -17,7 +17,7 @@ class form extends common { - const VERSION = '4.5'; + const VERSION = '4.6'; const REALNAME = 'Formulaire'; const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json) @@ -479,7 +479,7 @@ class form extends common if (!empty($singlemail)) { $to[] = $singlemail; } - if ($to) { + if (is_array($to)) { // Sujet du mail $subject = $this->getData(['module', $this->getUrl(0), 'config', 'subject']); if ($subject === '') { @@ -495,6 +495,7 @@ class form extends common $this->getData(['config', 'smtp', 'from']) ); } + } // Redirection $redirect = $this->getData(['module', $this->getUrl(0), 'config', 'pageId']);