summaryrefslogtreecommitdiff
path: root/STECore.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2014-05-18 01:01:29 +0200
committerKevin Chabowski <kevin@kch42.de>2014-05-18 01:01:29 +0200
commitd93c3d17b2b94b11f89b00c2bf27b3e246af966a (patch)
tree4e2da548183285f74999d9dcaf32dcf3aed06351 /STECore.php
parent861b7b3435b4fd121fbdbb615db23d9df125c8ec (diff)
downloadste-scopes.tar.gz
ste-scopes.tar.bz2
ste-scopes.zip
Getting rid of some notices / fixing _get_var_referencescopes
Diffstat (limited to 'STECore.php')
-rw-r--r--STECore.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/STECore.php b/STECore.php
index 0f81611..6bde63f 100644
--- a/STECore.php
+++ b/STECore.php
@@ -158,10 +158,9 @@ class STECore {
return $nullref;
}
} else {
- $old_varname = $varname;
$bracket_close = strpos($name, "]", $bracket_open);
if($bracket_close === false) {
- throw new RuntimeError("Invalid varname \"$varname\". Missing closing \"]\".");
+ throw new RuntimeError("Invalid varname \"$name\". Missing closing \"]\".");
}
$varname = substr($name, 0, $bracket_open);
$name = substr($name, $bracket_open + 1, $bracket_close - $bracket_open - 1) . substr($name, $bracket_close + 1);
@@ -176,7 +175,7 @@ class STECore {
$ref = &$this->_get_var_reference($from[$varname], $name, $create_if_not_exist);
return $ref;
} catch(Exception $e) {
- throw new RuntimeError("Invalid varname \"$old_varname\". Missing closing \"]\".");
+ throw new RuntimeError("Invalid varname \"$name\". Missing closing \"]\".");
}
}
}