summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-11-07 21:13:31 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-11-07 21:13:31 +0000
commite329fd34c28ada594782d1d636b59b8af574379a (patch)
tree89188e876e03fc425537470ae0c648637639feea /modules
parentb40fcbd14de17b8ea2f9df3b30761eefd38a9adc (diff)
downloadbrdo-e329fd34c28ada594782d1d636b59b8af574379a.tar.gz
brdo-e329fd34c28ada594782d1d636b59b8af574379a.tar.bz2
#190128 by bjaspan and chx: fix _block_rehash() functionality on PostgreSQL
Diffstat (limited to 'modules')
-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;