diff --git a/formidable_pipelines.php b/formidable_pipelines.php index 71e3ef34e016ab6d58c729c4a3ba29af1b6942e9..be45a68e51ee9f57bbe4b152c20051cbb81fd78c 100644 --- a/formidable_pipelines.php +++ b/formidable_pipelines.php @@ -51,10 +51,14 @@ function formidable_trouve_liens($texte) { ); } elseif ($r[2] == 'formulaire|formidable') { $args = ltrim($r[4], '|'); - $args = explode('=', $args); - $args = $args[1]; - $args = explode('|', $args); - $args = trim(reset($args)); + if(strpos($args,'=')!==false) { + $args = explode('=', $args); + $args = $args[1]; + } + if(strpos($args,'|')!==false) { + $args = explode('|', $args); + $args = trim(reset($args)); + } if (is_numeric($args)) { $id_formulaire = intval($args); } else { diff --git a/paquet.xml b/paquet.xml index f91990a0f5138cfd217f0216b3a4e31ba07731a3..5f03508c20adca0d09f6846f7a896d74fd5a22bb 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,7 +1,7 @@ <paquet prefix="formidable" categorie="communication" - version="3.38.3" + version="3.38.4" etat="stable" compatibilite="[3.0.0;3.2.*]" logo="images/formidable-64.png"