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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tricasse’s picture

jcnventura’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.