Commit e1e75fed by Seldaek

git-svn-id: svn://dwoo.org/dwoo/trunk@79 0598d79b-80c4-4d41-97ba-ac86fbbd088b

parent af562417
...@@ -1385,7 +1385,7 @@ class Dwoo ...@@ -1385,7 +1385,7 @@ class Dwoo
{ {
$old = $this->scopeTree; $old = $this->scopeTree;
if(is_array($scope)===false) if(is_string($scope)===true)
$scope = explode('.', $scope); $scope = explode('.', $scope);
if($absolute===true) if($absolute===true)
...@@ -1399,7 +1399,6 @@ class Dwoo ...@@ -1399,7 +1399,6 @@ class Dwoo
if($bit === '_' || $bit === '_parent') if($bit === '_' || $bit === '_parent')
{ {
array_pop($this->scopeTree); array_pop($this->scopeTree);
reset($this->scopeTree);
$this->scope =& $this->data; $this->scope =& $this->data;
$cnt = count($this->scopeTree); $cnt = count($this->scopeTree);
for($i=0;$i<$cnt;$i++) for($i=0;$i<$cnt;$i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment