ajax.php
changeset 593 4f9bec0d65c1
parent 592 27377179fe58
child 685 17ebe24cdf85
--- a/ajax.php	Wed Jul 02 19:36:44 2008 -0400
+++ b/ajax.php	Wed Jul 02 22:15:55 2008 -0400
@@ -436,7 +436,7 @@
       $name = sanitize_page_id($name);
       $name = str_replace('_', ' ', $name);
       
-      for($i=0;$i<sizeof($paths->pages)/2;$i++)
+      foreach ( $paths->pages as $i => $_ )
       {
         if( ( 
             preg_match('#'.preg_quote($name).'(.*)#i', $paths->pages[$i]['name']) ||