From d6af3d268d3ade677a440290c6ddb4362664fc14 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Fri, 7 Oct 2005 23:14:49 +0000 Subject: [PATCH] - Prevent notices from showing up if inner's current() does not return a string --- ext/spl/examples/recursivetreeiterator.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/spl/examples/recursivetreeiterator.inc b/ext/spl/examples/recursivetreeiterator.inc index 62198c8d36..d525bc0782 100755 --- a/ext/spl/examples/recursivetreeiterator.inc +++ b/ext/spl/examples/recursivetreeiterator.inc @@ -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 -- 2.50.1