Commit 85f219b3 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

[FIX] Correction de la Notice lorsque pas d'argument

parent c5f3b8f0
Pipeline #14770 passed with stage
in 17 seconds
...@@ -176,8 +176,9 @@ class MacroService { ...@@ -176,8 +176,9 @@ class MacroService {
{ {
$code = str_replace('VAR[','', $code); $code = str_replace('VAR[','', $code);
$code = str_replace(']','', $code); $code = str_replace(']','', $code);
$parameter = explode("|",$code)[1]; $exploded = explode("|",$code);
$code = explode("|",$code)[0]; $parameter = ($exploded[1])??null;
$code = ($exploded[0])??null;
$macro = $this->getMacroByCode($code); $macro = $this->getMacroByCode($code);
if ($macro !== null) { if ($macro !== null) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment