summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/block/block.module6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/block/block.module b/modules/block/block.module
index 10b0c233f..53d6974c6 100644
--- a/modules/block/block.module
+++ b/modules/block/block.module
@@ -240,6 +240,12 @@ function _block_rehash() {
$block['module'] = $module;
$block['delta'] = $delta;
$block['theme'] = $theme_key;
+ if (!isset($block['pages'])) {
+ // {block}.pages is type 'text', so it cannot have a
+ // default value, and not null, so we need to provide
+ // value if the module did not.
+ $block['pages'] = '';
+ }
// Add defaults and save it into the database.
drupal_write_record('blocks', $block);
$blocks[] = $block;