diff --git a/nokogiri.php b/nokogiri.php index 38a8dd8..59a94e8 100644 --- a/nokogiri.php +++ b/nokogiri.php @@ -248,7 +248,7 @@ public function getIterator(){ $a = $this->toArray(); return new ArrayIterator($a); } - protected function _toTextArray($node = null, $skipChildren = false, $singleLevel = tru){ + protected function _toTextArray($node = null, $skipChildren = false, $singleLevel = true){ $array = array(); if ($node === null){ if ($this->_dom instanceof DOMNodeList){