From f97c3367b0c3aef32122f298f2ce971bb59091c9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 31 Jul 2004 16:23:01 +0000 Subject: [PATCH] - Patch #9649 by JonBob: fixed a buglet in the recent book patch. It tried to set book breadcrumbs for nodes that weren't books. --- modules/book.module | 6 +++--- modules/book/book.module | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/book.module b/modules/book.module index 216c5357714..7b8a60811ec 100644 --- a/modules/book.module +++ b/modules/book.module @@ -456,9 +456,9 @@ function book_nodeapi(&$node, $op, $teaser, $page) { $node->$key = $value; } $node = book_navigation($node); - } - if ($page) { - menu_set_location($node->breadcrumb); + if ($page) { + menu_set_location($node->breadcrumb); + } } } break; diff --git a/modules/book/book.module b/modules/book/book.module index 216c5357714..7b8a60811ec 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -456,9 +456,9 @@ function book_nodeapi(&$node, $op, $teaser, $page) { $node->$key = $value; } $node = book_navigation($node); - } - if ($page) { - menu_set_location($node->breadcrumb); + if ($page) { + menu_set_location($node->breadcrumb); + } } } break;