1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-23 05:16:03 +02:00

Flextype Core: ShortcodesTwigExtension #186

- issue with null variables - fixed
This commit is contained in:
Awilum
2019-08-11 15:57:39 +03:00
parent 7fa2b7ce59
commit 19770a375f

View File

@@ -42,8 +42,12 @@ class ShortcodesTwigExtension extends Twig_Extension
/**
* Shorcode process
*/
public function shortcode(string $value) : string
public function shortcode($value) : string
{
return $this->flextype->shortcodes->process($value);
if ($value !== null) {
return $this->flextype->shortcodes->process($value);
}
return '';
}
}