diff --git a/view/SSViewer.php b/view/SSViewer.php index 456822048..d03dd9336 100644 --- a/view/SSViewer.php +++ b/view/SSViewer.php @@ -449,7 +449,7 @@ class SSViewer_DataPresenter extends SSViewer_Scope { if ($val = $this->getInjectedValue($property, $params)) { $hasInjected = true; $obj = $val['obj']; - $res = ($obj->hasMethod('forTemplate')) ? $obj->forTemplate() : ''; + $res = $obj->forTemplate(); } }