Commit 8a0c090e authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Fixing getTexte with parameter null

parent 32cec020
Pipeline #13106 passed with stage
in 17 seconds
......@@ -183,7 +183,10 @@ class MacroService {
if ($macro !== null) {
if (isset($variables[$macro->getVariable()]) === true) {
if (method_exists($variables[$macro->getVariable()], $macro->getMethode()) === true) {
$texte = $variables[$macro->getVariable()]->{$macro->getMethode()}($parameter);
if ($parameter !== null) $texte = $variables[$macro->getVariable()]->{$macro->getMethode()}($parameter);
else $texte = $variables[$macro->getVariable()]->{$macro->getMethode()}();
return ($texte)?:"";
}
return "<span style='color:darkred;'> Méthode [".$macro->getMethode()."] non trouvée </span>";
......
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