So I added:

function zen_process_block(&$variables, $hook) {
$variables['title'] = '';
// Drupal 7 should use a $title variable instead of $block->subject.
if(isset($variables['block']->subject)) {
$variables['title'] = $variables['block']->subject;
}
}

Sorry for not submitting a patch. I'm really busy right now.

Comments

johnalbin’s picture

Version: 7.x-5.1 » 7.x-5.x-dev
Status: Active » Postponed (maintainer needs more info)

Under what circumstances does this occur? I've not seen this bug.

sproets’s picture

For me Zen in combination with Panelizer and leaving pane title empty...

JmOkay’s picture

For me a combination of Zen, Panels and being on the Homepage

dave reid’s picture

Status: Postponed (maintainer needs more info) » Active

Seems this has been answered.

johnalbin’s picture

Title: Notice: Undefined property: stdClass::$subject in zen_process_block() (line 458 of /zen/template.php » Fix undefined property notice in zen_process_block() when using Panels
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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