Commit 50717513 authored by Steven Wittens's avatar Steven Wittens

- Left-over debug statement

parent af0be96a
......@@ -536,8 +536,6 @@ function book_toc_recurse($nid, $indent, $toc, $children, $exclude) {
function book_toc($exclude = 0, $parent = 0, $indent = '', $toc = array()) {
$result = db_query('SELECT DISTINCT(n.nid), n.title, b.parent FROM {node} n '. node_access_join_sql() .' INNER JOIN {book} b ON n.nid = b.nid WHERE n.status = 1 AND '. node_access_where_sql() .' ORDER BY b.weight, n.title');
print "Exclude: ". $exclude;
while ($node = db_fetch_object($result)) {
if (!$children[$node->parent]) {
$children[$node->parent] = array();
......
......@@ -536,8 +536,6 @@ function book_toc_recurse($nid, $indent, $toc, $children, $exclude) {
function book_toc($exclude = 0, $parent = 0, $indent = '', $toc = array()) {
$result = db_query('SELECT DISTINCT(n.nid), n.title, b.parent FROM {node} n '. node_access_join_sql() .' INNER JOIN {book} b ON n.nid = b.nid WHERE n.status = 1 AND '. node_access_where_sql() .' ORDER BY b.weight, n.title');
print "Exclude: ". $exclude;
while ($node = db_fetch_object($result)) {
if (!$children[$node->parent]) {
$children[$node->parent] = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment