Update view/SSViewer.php

This commit is contained in:
Dominik Beerbohm 2012-01-16 18:04:26 +01:00
parent a6cc7d8392
commit 3a9ea42488

View File

@ -50,7 +50,7 @@ class SSViewer_Scope {
array_splice($this->itemStack, $this->localIndex+1);
}
function obj($name){
function obj($name, $arguments = array()) {
switch ($name) {
case 'Up':
@ -64,8 +64,7 @@ class SSViewer_Scope {
default:
$on = $this->itemIterator ? $this->itemIterator->current() : $this->item;
$arguments = func_get_args();
$this->item = call_user_func_array(array($on, 'obj'), $arguments);
$this->item = call_user_func_array(array($on, 'obj'), (array) $arguments);
$this->itemIterator = null;
$this->upIndex = $this->currentIndex ? $this->currentIndex : count($this->itemStack)-1;