From afc700a3f68099468405b75603c8817af837123c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 28 Jun 2007 08:56:28 +0000 Subject: - Patch #153364 by webernet: notices and RTL issue with book.module. --- modules/book/book.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/book/book.module b/modules/book/book.module index d0a565951..10166da58 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -681,6 +681,7 @@ function book_export($type, $nid) { */ function book_export_html($nid, $depth) { if (user_access('see printer-friendly version')) { + $content = ''; $node = node_load($nid); for ($i = 1; $i < $depth; $i++) { $content .= "
\n"; @@ -709,7 +710,7 @@ function theme_book_export_html($title, $content) { $html .= ''; $html .= ''."\n"; $html .= "\n"; @@ -738,6 +739,7 @@ function theme_book_export_html($title, $content) { * - the output generated in visiting each node */ function book_recurse($nid = 0, $depth = 1, $visit_pre, $visit_post) { + $output = ''; $result = db_query(db_rewrite_sql('SELECT n.nid, n.title, b.weight FROM {node} n INNER JOIN {book} b ON n.vid = b.vid WHERE n.status = 1 AND n.nid = %d ORDER BY b.weight, n.title'), $nid); while ($page = db_fetch_object($result)) { // Load the node: @@ -802,7 +804,7 @@ function book_node_visitor_html_pre($node, $depth, $nid) { // Allow modules to make their own additions to the node. node_invoke_nodeapi($node, 'print'); - $output .= "
nid ."\" class=\"section-$depth\">\n"; + $output = "
nid ."\" class=\"section-$depth\">\n"; $output .= "

". check_plain($node->title) ."

\n"; $output .= drupal_render($node->content); -- cgit v1.2.3