summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-05-14 13:53:01 +0000
committerDries Buytaert <dries@buytaert.net>2007-05-14 13:53:01 +0000
commitf07760b3384da803cbd4762ed22109f74edb292c (patch)
treeded774aa3cb34582978580d764df05b1f9104ca7
parentac65ff9074223e7b09c1c609c9d82da45b28aa55 (diff)
downloadbrdo-f07760b3384da803cbd4762ed22109f74edb292c.tar.gz
brdo-f07760b3384da803cbd4762ed22109f74edb292c.tar.bz2
- Patch #141664 by ChrisKennedy: fixed E_ALL warning.
-rw-r--r--modules/block/block.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/block/block.module b/modules/block/block.module
index 0091ad8e2..dbf8a9d73 100644
--- a/modules/block/block.module
+++ b/modules/block/block.module
@@ -296,7 +296,7 @@ function block_admin_display_submit($form_values, $form, &$form_state) {
foreach ($form_values as $block) {
$block['status'] = $block['region'] != BLOCK_REGION_NONE;
$block['region'] = $block['status'] ? $block['region'] : '';
- db_query("UPDATE {blocks} SET status = %d, weight = %d, region = '%s', throttle = %d WHERE module = '%s' AND delta = '%s' AND theme = '%s'", $block['status'], $block['weight'], $block['region'], $block['throttle'], $block['module'], $block['delta'], $block['theme']);
+ db_query("UPDATE {blocks} SET status = %d, weight = %d, region = '%s', throttle = %d WHERE module = '%s' AND delta = '%s' AND theme = '%s'", $block['status'], $block['weight'], $block['region'], isset($block['throttle']) ? $block['throttle'] : 0, $block['module'], $block['delta'], $block['theme']);
}
drupal_set_message(t('The block settings have been updated.'));
cache_clear_all();