From 5a3d3bfb22436d7cfb359a6814f3f2fe7977e94f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 22 Dec 2002 11:25:50 +0000 Subject: - Fixed rendering bug in book module. Reported by vmole at http://drupal.org/node.php?id=923. --- modules/book.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/book.module') diff --git a/modules/book.module b/modules/book.module index b6bace0c6..161e84e16 100644 --- a/modules/book.module +++ b/modules/book.module @@ -496,7 +496,7 @@ function book_tree_recurse($nid, $depth, $children) { function book_tree($parent = 0, $depth = 3) { - $result = db_query("SELECT n.nid, n.title, b.parent FROM node n LEFT JOIN book b ON n.nid = b.nid WHERE n.status = '1' ORDER BY b.weight, n.title"); + $result = db_query("SELECT n.nid, n.title, b.parent FROM node n LEFT JOIN book b ON n.nid = b.nid WHERE n.status = '1' AND n.moderate = '0' ORDER BY b.weight, n.title"); while ($node = db_fetch_object($result)) { $list = $children[$node->parent] ? $children[$node->parent] : array(); -- cgit v1.2.3