From 4545f798a9876716fb9ef56190d879bf62c49fdf Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 16 Aug 2004 17:54:24 +0000 Subject: - Patch #10103 by Gerhard: book module cleanup. --- modules/book.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/book.module') diff --git a/modules/book.module b/modules/book.module index a2111a00f..03b21edb5 100644 --- a/modules/book.module +++ b/modules/book.module @@ -419,7 +419,7 @@ function book_nodeapi(&$node, $op, $teaser, $page) { switch ($op) { case 'view': if (!$teaser) { - $book = db_fetch_object(db_query('SELECT * FROM {book} WHERE nid = %d', $node->nid)); + $book = db_fetch_array(db_query('SELECT * FROM {book} WHERE nid = %d', $node->nid)); if ($book) { foreach ($book as $key => $value) { @@ -454,7 +454,7 @@ function book_navigation($node) { $output .= '
'; if ($tree = book_tree($node->nid)) { - $output .= '
'. book_tree($node->nid) .'
'; + $output .= '
'. $tree .'
'; } if ($prev = book_prev($node)) { -- cgit v1.2.3