Index: og_subgroups.module =================================================================== RCS file: /cvs/drupal/contributions/modules/og_subgroups/og_subgroups.module,v retrieving revision 1.47 diff -u -r1.47 og_subgroups.module --- og_subgroups.module 18 Dec 2008 20:10:09 -0000 1.47 +++ og_subgroups.module 19 Mar 2009 08:28:04 -0000 @@ -270,8 +270,7 @@ // If direction is up, down and side then all groups will be used. // Otherwise remove the unnecessary groups. if (count($directions) != OG_SUBGROUPS_DIRECTION_COUNT && $node_links) { - $mlid = array_values($node_links[$gid]); - $mlid = $mlid[0]['mlid']; + $mlid = $node->book['mlid']; _og_subgroups_filter_groups($gid, $mlid, $node_links, $directions); }