Commit e38ae573 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#199832 by theborg, Pasqualle: block title defined as NOT NULL, so requires a...

#199832 by theborg, Pasqualle: block title defined as NOT NULL, so requires a default empty string even if not set (fixes a theme notice but also a pgsql error)
parent c8b1ddf2
......@@ -459,6 +459,9 @@ function block_list($region) {
// Check plain here to allow module generated titles to keep any markup.
$block->subject = $block->title == '<none>' ? '' : check_plain($block->title);
}
if (!isset($block->subject)) {
$block->subject = '';
}
$blocks[$block->region]["{$block->module}_{$block->delta}"] = $block;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment