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.'));