From 9f77077584b592de68ca3e59f92204b715e03006 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Sun, 30 Jan 2005 08:53:05 +0000
Subject: [PATCH] - Fixed a misplaced bracket that slipped in due to the
 db/node_rewrite_sql_patch.

---
 modules/book.module      | 2 +-
 modules/book/book.module | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/book.module b/modules/book.module
index 71295ab6a7fa..a7aa2a9948f8 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -642,7 +642,7 @@ function book_print($nid = 0, $depth = 1) {
 }
 
 function book_print_recurse($parent = '', $depth = 1) {
-  $result = db_query(db_rewrite_sql('SELECT n.nid, n.title, b.weight FROM {node} n INNER JOIN {book} b ON n.nid = b.nid WHERE n.status = 1 AND b.parent = %d AND n.moderate = 0 ORDER BY b.weight, n.title', $parent));
+  $result = db_query(db_rewrite_sql('SELECT n.nid, n.title, b.weight FROM {node} n INNER JOIN {book} b ON n.nid = b.nid WHERE n.status = 1 AND b.parent = %d AND n.moderate = 0 ORDER BY b.weight, n.title'), $parent);
 
   while ($page = db_fetch_object($result)) {
     // Load the node:
diff --git a/modules/book/book.module b/modules/book/book.module
index 71295ab6a7fa..a7aa2a9948f8 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -642,7 +642,7 @@ function book_print($nid = 0, $depth = 1) {
 }
 
 function book_print_recurse($parent = '', $depth = 1) {
-  $result = db_query(db_rewrite_sql('SELECT n.nid, n.title, b.weight FROM {node} n INNER JOIN {book} b ON n.nid = b.nid WHERE n.status = 1 AND b.parent = %d AND n.moderate = 0 ORDER BY b.weight, n.title', $parent));
+  $result = db_query(db_rewrite_sql('SELECT n.nid, n.title, b.weight FROM {node} n INNER JOIN {book} b ON n.nid = b.nid WHERE n.status = 1 AND b.parent = %d AND n.moderate = 0 ORDER BY b.weight, n.title'), $parent);
 
   while ($page = db_fetch_object($result)) {
     // Load the node:
-- 
GitLab