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:
@@ -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 '';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user