Download & Extend

Error message on preview existing node

Project:Book made simple
Version:6.x-2.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

If you preview an existing node, that is a book, the following error message occur:

warning: array_key_exists(): The second argument should be either an array or an object in /home/www/ldpt.org/httpdocs/sites/all/modules/BookMadeSimple/book_made_simple.module on line 405.

This does not happen on newly edited nodes in preview mode.

Comments

#1

Status:active» closed (fixed)

Right.

Could you change the line 404 in the book_made_simple.module file :

<?php
           
if (variable_get('book_made_simple_hide_default_add_child',true)) {
?>

by

<?php
           
if (($node->links) && variable_get('book_made_simple_hide_default_add_child',true)) {
?>

or get the new version (2.1b) at http://code.google.com/p/mmr-drupal-modules/wiki/BookMadeSimple

nobody click here