Commit 632c09e4 authored by Dries's avatar Dries

- Patch #114745 by moonray: book module: can't remove top-level node.

parent 4d731dd3
......@@ -267,7 +267,7 @@ function book_outline($node) {
);
$form['nid'] = array('#type' => 'value', '#value' => $nid);
if ($node->parent) {
if (isset($node->parent)) {
$form['update'] = array('#type' => 'submit',
'#value' => t('Update book outline'),
);
......
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