Permalink
Browse files

MINOR Code formatting in SSViewer

  • Loading branch information...
1 parent e5e8f48 commit 4d4f9e08d9b9908fdba0920ab4060a1516e0d7b2 @halkyon halkyon committed May 19, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 view/SSViewer.php
View
@@ -447,7 +447,9 @@ function __call($name, $arguments) {
}
else { // XML_val
if ($val = $this->getInjectedValue($property, $params)) {
- $hasInjected = true; $obj = $val['obj']; $res = $obj->forTemplate();
+ $hasInjected = true;
+ $obj = $val['obj'];
+ $res = ($obj->hasMethod('forTemplate')) ? $obj->forTemplate() : '';
}
}

0 comments on commit 4d4f9e0

Please sign in to comment.