From e38ae5735ed7143d9febb7994b21744b28fb78d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Tue, 18 Dec 2007 14:11:02 +0000 Subject: #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) --- modules/block/block.module | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules') 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 == '' ? '' : check_plain($block->title); } + if (!isset($block->subject)) { + $block->subject = ''; + } $blocks[$block->region]["{$block->module}_{$block->delta}"] = $block; } } -- cgit v1.2.3