- Prevent notices from showing up if inner's current() does not return a string

This commit is contained in:
Marcus Boerger 2005-10-07 23:14:49 +00:00
parent f70499f83a
commit d6af3d268d

View File

@ -60,7 +60,7 @@ class RecursiveTreeIterator extends RecursiveIteratorIterator
*/
function getEntry()
{
return $this->callToString ? $this->__toString() : parent::current();
return $this->callToString ? $this->__toString() : @(string)parent::current();
}
/** @return string to place after the current element