Problem/Motivation
Error message popping up when reaching a non-existing node:
Notice : Undefined index: content in print_ui_block_view() (line 95 in /sites/all/modules/print/print_ui/print_ui.module).
Can be reproduced by accessing /node/[non-existing-nid] with print_ui enabled.
Proposed resolution
Check that there is a node (and therefore a 'content' block) before altering the 'content' block.
Remaining tasks
Not to my knowledge (but I'm not a Drupal developer, so feel free to tell me!), apart from reviewing the attached patch of course!
User interface changes
No.
API changes
No.
Comments
Comment #1
tricasse commentedComment #2
jcnventurahttp://drupalcode.org/project/print.git/commit/5855657
Thanks for reporting this.