Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update view/SSViewer.php

  • Loading branch information...
commit 3a9ea4248898a1fc47f0683a39605f7c71b7269b 1 parent a6cc7d8
Dominik Beerbohm AngryPHPNerd authored
Showing with 5 additions and 6 deletions.
  1. +5 −6 view/SSViewer.php
11 view/SSViewer.php
View
@@ -50,8 +50,8 @@ function resetLocalScope(){
array_splice($this->itemStack, $this->localIndex+1);
}
- function obj($name){
-
+ function obj($name, $arguments = array()) {
+
switch ($name) {
case 'Up':
list($this->item, $this->itemIterator, $unused2, $this->upIndex, $this->currentIndex) = $this->itemStack[$this->upIndex];
@@ -63,10 +63,9 @@ function obj($name){
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;
$this->currentIndex = count($this->itemStack);
Please sign in to comment.
Something went wrong with that request. Please try again.