Author: Kore Nordmann
Date: 2007-01-04 09:33:42 +0100 (Thu, 04 Jan 2007)
New Revision: 4460

Log:
- Thanks for Johannes Schlueter poiting me to this
  # Traverseable is the generic interface for Iterator, IteratorAggregate and 
  # some more internal classes which can be used with foreach
  # http://www.php.net/~helly/php/ext/spl/interfaceTraversable.html

Modified:
   trunk/Graph/src/datasets/array.php

Modified: trunk/Graph/src/datasets/array.php
===================================================================
--- trunk/Graph/src/datasets/array.php  2007-01-03 13:22:19 UTC (rev 4459)
+++ trunk/Graph/src/datasets/array.php  2007-01-04 08:33:42 UTC (rev 4460)
@@ -39,7 +39,7 @@
     protected function createFromArray( $data = array() ) 
     {
         if ( !is_array( $data ) && 
-             !( $data instanceof Iterator ) )
+             !( $data instanceof Traversable ) )
         {
             throw new ezcGraphInvalidArrayDataSourceException( $data );
         }

-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to