summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-04-13 18:50:57 +0000
committerDries Buytaert <dries@buytaert.net>2005-04-13 18:50:57 +0000
commit293daa48201d344b231c80a1659f13f421caf9e5 (patch)
tree46e042fa6a078b75027e32f776876bcf6f4ff3e7 /modules/book.module
parent1bc5fe183ba71f6ff61bf7baae64b7d6c6b0e1cc (diff)
downloadbrdo-293daa48201d344b231c80a1659f13f421caf9e5.tar.gz
brdo-293daa48201d344b231c80a1659f13f421caf9e5.tar.bz2
- Patch #20451 by Moshe: some ancient code was assuming that all apges in a book are of type 'book'.
Diffstat (limited to 'modules/book.module')
-rw-r--r--modules/book.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/book.module b/modules/book.module
index 16d2eec80..0a207c700 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -55,7 +55,7 @@ function book_link($type, $node = 0, $main = 0) {
$links = array();
- if ($type == 'node' && $node->type == 'book') {
+ if ($type == 'node' && isset($node->parent)) {
if (!$main) {
if (book_access('create', $node)) {
$links[] = l(t('add child page'), "node/add/book/parent/$node->nid");