Error message on preview existing node
druppi - June 21, 2009 - 11:56
| Project: | BookMadeSimple |
| Version: | 6.x-2.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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.

#1
Right.
Could you change the line 404 in the book_made_simple.module file :
<?phpif (variable_get('book_made_simple_hide_default_add_child',true)) {
?>
by
<?phpif (($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