How to reproduce:
Create a View with a pane display with no title; create a panels page and use it as a homepage. Add that view pane to one of the regions of the panel page and go to that page - this will result in:

Undefined property: stdClass::$subject in preprocess_block() (line 198 of template.php)

Comments

Jeff Burnz’s picture

Version: 7.x-3.0-rc1 » 7.x-3.x-dev
Priority: Minor » Normal
Status: Active » Fixed

Needs extra checks, sometimes the subject can be set and empty, i.e. using <none>, e.g. we need to do this:

  if (isset($vars['block']->subject)) {
    if (!empty($vars['block']->subject)) {
      $vars['content_attributes_array']['class'][] = 'no-title';
    }
  }

Will commit shortly.

Status: Fixed » Closed (fixed)

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