diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-11 18:33:44 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-11 18:33:44 +0000 |
commit | ff301288f2ea06d76606c05bccac5957e2873a94 (patch) | |
tree | b46d9d7e56612945850281a136161967ba8bc5f2 /modules/book | |
parent | de33f74b4040cc3f7880269152b277d90b081cc8 (diff) | |
download | brdo-ff301288f2ea06d76606c05bccac5957e2873a94.tar.gz brdo-ff301288f2ea06d76606c05bccac5957e2873a94.tar.bz2 |
- Patch #348448 by mfb, c960657, marvil07, cdale, jpmckinney: fixed PHP strict warnings when running tests and for PHP 5.3.
Diffstat (limited to 'modules/book')
-rw-r--r-- | modules/book/book.module | 6 |
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 ''; } /** |