I think you need to check to see if the page_type_op variable isset before using it to create class names. On non-node pages the preceding logic skips setting this variable.

CommentFileSizeAuthor
#1 page_type_op_und.patch792 bytesdpolant
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dpolant’s picture

FileSize
792 bytes

btw here is a patch that seems to fix the error while maintaining desired functionality

danielhonrade’s picture

Status: Active » Fixed

committed, thanks

Status: Fixed » Closed (fixed)

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