BUGFIX: func_get_args cant be used in a function call in PHP 5.2

This commit is contained in:
Hamish Friedlander 2011-03-11 11:52:51 +13:00
parent f5b867a35d
commit d0afa9987c

View File

@ -63,8 +63,10 @@ class SSViewer_Scope {
default: default:
$on = $this->itemIterator ? $this->itemIterator->current() : $this->item; $on = $this->itemIterator ? $this->itemIterator->current() : $this->item;
$this->item = call_user_func_array(array($on, 'obj'), func_get_args()); $arguments = func_get_args();
$this->item = call_user_func_array(array($on, 'obj'), $arguments);
$this->itemIterator = null; $this->itemIterator = null;
$this->upIndex = $this->currentIndex ? $this->currentIndex : count($this->itemStack)-1; $this->upIndex = $this->currentIndex ? $this->currentIndex : count($this->itemStack)-1;
$this->currentIndex = count($this->itemStack); $this->currentIndex = count($this->itemStack);