Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reset ...

  • Loading branch information...
commit 82ef23687969384368a113a3c0d07d67b6211184 1 parent 09c1f8f
@AngryPHPNerd AngryPHPNerd authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 view/SSViewer.php
View
11 view/SSViewer.php
@@ -50,8 +50,8 @@ function resetLocalScope(){
array_splice($this->itemStack, $this->localIndex+1);
}
- function obj($name, $arguments = array()) {
-
+ function obj($name){
+
switch ($name) {
case 'Up':
list($this->item, $this->itemIterator, $unused2, $this->upIndex, $this->currentIndex) = $this->itemStack[$this->upIndex];
@@ -63,9 +63,10 @@ function obj($name, $arguments = array()) {
default:
$on = $this->itemIterator ? $this->itemIterator->current() : $this->item;
-
- $this->item = call_user_func_array(array($on, 'obj'), (array) $arguments);
-
+
+ $arguments = func_get_args();
+ $this->item = call_user_func_array(array($on, 'obj'), $arguments);
+
$this->itemIterator = null;
$this->upIndex = $this->currentIndex ? $this->currentIndex : count($this->itemStack)-1;
$this->currentIndex = count($this->itemStack);
Please sign in to comment.
Something went wrong with that request. Please try again.