Commit 5cfdac24 authored by Gerhard Killesreiter's avatar Gerhard Killesreiter

#54565, cannot remove pages from book outline. Patch by Zen.

parent fd994359
......@@ -181,7 +181,7 @@ function book_block($op = 'list', $delta = 0) {
function book_load($node) {
global $user;
$book = db_fetch_object(db_query('SELECT parent, weight FROM {book} WHERE vid = %d', $node->vid));
$book = db_fetch_object(db_query('SELECT * FROM {book} WHERE vid = %d', $node->vid));
if (arg(2) == 'edit' && !user_access('administer nodes')) {
// If a user is about to update a book page, we overload some
......
......@@ -181,7 +181,7 @@ function book_block($op = 'list', $delta = 0) {
function book_load($node) {
global $user;
$book = db_fetch_object(db_query('SELECT parent, weight FROM {book} WHERE vid = %d', $node->vid));
$book = db_fetch_object(db_query('SELECT * FROM {book} WHERE vid = %d', $node->vid));
if (arg(2) == 'edit' && !user_access('administer nodes')) {
// If a user is about to update a book page, we overload some
......
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