Index: menu.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/menu.inc,v
retrieving revision 1.255.2.32
diff -u -p -r1.255.2.32 menu.inc
--- menu.inc	6 Oct 2009 11:59:05 -0000	1.255.2.32
+++ menu.inc	20 Oct 2009 15:01:09 -0000
@@ -894,7 +894,11 @@ function menu_tree_page_data($menu_name 
             $args[] = '<front>';
             $placeholders .= ", '%s'";
           }
-          $parents = db_fetch_array(db_query("SELECT p1, p2, p3, p4, p5, p6, p7, p8 FROM {menu_links} WHERE menu_name = '%s' AND link_path IN (". $placeholders .")", $args));
+          $parents = array();
+          $result = db_query("SELECT p1, p2, p3, p4, p5, p6, p7, p8 FROM {menu_links} WHERE menu_name = '%s' AND link_path IN (". $placeholders .")", $args);
+          while ($row = db_fetch_array($result)) {
+            $parents = array_merge($parents, array_values($row));
+          }
 
           if (empty($parents)) {
             // If no link exists, we may be on a local task that's not in the links.
