diff options
Diffstat (limited to 'modules/book/book.module')
-rw-r--r-- | modules/book/book.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/book/book.module b/modules/book/book.module index b5790ce4a..835d214bc 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -625,7 +625,8 @@ function book_prev($book_link) { // The previous page in the book may be a child of the previous visible link. if ($prev['depth'] == $book_link['depth'] && $prev['has_children']) { // The subtree will have only one link at the top level - get its data. - $data = array_shift(book_menu_subtree_data($prev)); + $tree = book_menu_subtree_data($prev); + $data = array_shift($tree); // The link of interest is the last child - iterate to find the deepest one. while ($data['below']) { $data = end($data['below']); |