summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/locale/locale.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index f29a7542a..f76d4ebb3 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -999,7 +999,7 @@ function locale_url_outbound_alter(&$path, &$options, $original_path) {
function locale_form_comment_form_alter(&$form, &$form_state, $form_id) {
// If a content type has multilingual support we set the content language as
// comment language.
- if (empty($form['language']['#value']) && locale_multilingual_node_type($form['#node']->type)) {
+ if ($form['language']['#value'] == LANGUAGE_NONE && locale_multilingual_node_type($form['#node']->type)) {
global $language_content;
$form['language']['#value'] = $language_content->language;
}