Skip to content
Snippets Groups Projects
Commit 8a0c090e authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Fixing getTexte with parameter null

parent 32cec020
No related branches found
No related tags found
No related merge requests found
Pipeline #15783 passed
......@@ -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>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment