summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-08-16 17:54:24 +0000
committerDries Buytaert <dries@buytaert.net>2004-08-16 17:54:24 +0000
commit4545f798a9876716fb9ef56190d879bf62c49fdf (patch)
treec49635bc5f3ff9ea27214ad7575dd9961784dbd7 /modules/book.module
parentef07dd08f4a43d8b9c9f0b3dac2873056d9d3f01 (diff)
downloadbrdo-4545f798a9876716fb9ef56190d879bf62c49fdf.tar.gz
brdo-4545f798a9876716fb9ef56190d879bf62c49fdf.tar.bz2
- Patch #10103 by Gerhard: book module cleanup.
Diffstat (limited to 'modules/book.module')
-rw-r--r--modules/book.module4
1 files changed, 2 insertions, 2 deletions
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 .= '<div class="book">';
if ($tree = book_tree($node->nid)) {
- $output .= '<div class="tree">'. book_tree($node->nid) .'</div>';
+ $output .= '<div class="tree">'. $tree .'</div>';
}
if ($prev = book_prev($node)) {