]> granicus.if.org Git - php/commitdiff
Fix. Found by adam
authorMarcus Boerger <helly@php.net>
Fri, 23 Jan 2004 21:03:20 +0000 (21:03 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 23 Jan 2004 21:03:20 +0000 (21:03 +0000)
ext/spl/examples/recursiveiteratoriterator.inc

index 7d151f9e9fe33d2b0a6f08983414c7de1bf3f211..b48efb2b3bb20fa5b25c46efba72532d20334734 100755 (executable)
@@ -63,7 +63,7 @@ class RecursiveIteratorIterator implements Iterator
                                        $sub->rewind();
                                        if ($sub->hasMore()) {
                                                $this->ait[++$this->count] = $sub;
-                                               if (!$sub instanceof RecursiveIterator)) {
+                                               if (!$sub instanceof RecursiveIterator) {
                                                        throw new Exception(get_class($sub).'::getChildren() must return an object that implements RecursiveIterator');
                                                } 
                                                return;