Permalink
Browse files

Allow calling SSViewer_Scope on empty sets

Specifically fixes a bug where a SelectionGroup_Item
without a "child" field causes fatal errors.
  • Loading branch information...
chillu committed Dec 11, 2012
1 parent 548ad50 commit d92258da8fafb96ea8e433a554463e2b3a872945
Showing with 1 addition and 1 deletion.
  1. +1 −1 view/SSViewer.php
View
@@ -141,7 +141,7 @@ public function next(){
public function __call($name, $arguments) {
$on = $this->itemIterator ? $this->itemIterator->current() : $this->item;
- $retval = call_user_func_array(array($on, $name), $arguments);
+ $retval = $on ? call_user_func_array(array($on, $name), $arguments) : null;
$this->resetLocalScope();
return $retval;

0 comments on commit d92258d

Please sign in to comment.