summaryrefslogtreecommitdiff
path: root/modules/book/book.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/book/book.module')
-rw-r--r--modules/book/book.module6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/book/book.module b/modules/book/book.module
index 73c348942..9d5938331 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -745,7 +745,11 @@ function book_children($book_link) {
}
}
- return $children ? drupal_render(menu_tree_output($children)) : '';
+ if ($children) {
+ $elements = menu_tree_output($children);
+ return drupal_render($elements);
+ }
+ return '';
}
/**