Skip to content

Commit c2339f6

Browse files
authored
Merge pull request #641 from derhansen/develop
[TASK] Harden TemplateUtility::fluidParseString()
2 parents 66f8339 + ffdbe1f commit c2339f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Utility/TemplateUtility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,6 @@ public static function fluidParseString(string $string, array $variables = []):
163163
$standaloneView = ObjectUtility::getObjectManager()->get(StandaloneView::class);
164164
$standaloneView->setTemplateSource($string);
165165
$standaloneView->assignMultiple($variables);
166-
return $standaloneView->render();
166+
return $standaloneView->render() ?? '';
167167
}
168168
}

0 commit comments

Comments
 (0)