diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-18 14:11:02 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-18 14:11:02 +0000 |
commit | e38ae5735ed7143d9febb7994b21744b28fb78d2 (patch) | |
tree | 1accc0a5b2743001d65e0a097373dad3ec4f7985 /modules | |
parent | c8b1ddf26a299016c433c2901e519942d693430d (diff) | |
download | brdo-e38ae5735ed7143d9febb7994b21744b28fb78d2.tar.gz brdo-e38ae5735ed7143d9febb7994b21744b28fb78d2.tar.bz2 |
#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)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/block/block.module | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/block/block.module b/modules/block/block.module index 0896f0105..d758d0237 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -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; } } |