- Fixed a misplaced bracket that slipped in due to the db/node_rewrite_sql_patch.
parent
18a0cc2327
commit
9f77077584
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue