summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-12-22 11:25:50 +0000
committerDries Buytaert <dries@buytaert.net>2002-12-22 11:25:50 +0000
commit5a3d3bfb22436d7cfb359a6814f3f2fe7977e94f (patch)
tree413e91cbb94168ec5c76833ceb5a5e8bd69138ae /modules
parent259f17c5731e91fe4c4d738883527ae06573c576 (diff)
downloadbrdo-5a3d3bfb22436d7cfb359a6814f3f2fe7977e94f.tar.gz
brdo-5a3d3bfb22436d7cfb359a6814f3f2fe7977e94f.tar.bz2
- Fixed rendering bug in book module. Reported by vmole at
http://drupal.org/node.php?id=923.
Diffstat (limited to 'modules')
-rw-r--r--modules/book.module2
-rw-r--r--modules/book/book.module2
2 files changed, 2 insertions, 2 deletions
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();
diff --git a/modules/book/book.module b/modules/book/book.module
index b6bace0c6..161e84e16 100644
--- a/modules/book/book.module
+++ b/modules/book/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();