diff --git a/plugins/baser-core/src/Event/BcShortCodeEventListener.php b/plugins/baser-core/src/Event/BcShortCodeEventListener.php index 8cbd21144c..019f5dbb8c 100644 --- a/plugins/baser-core/src/Event/BcShortCodeEventListener.php +++ b/plugins/baser-core/src/Event/BcShortCodeEventListener.php @@ -97,7 +97,7 @@ protected function _execShortCode(View $view) } } - if ($view->helpers()->{$func[0]}) { + if ($view->helpers()->has($func[0])) { $Helper = $view->{$func[0]}; } else { $className = $plugin . "\\" . "View\\Helper\\" . $func[0] . 'Helper';