summaryrefslogtreecommitdiff
path: root/modules/translation
diff options
context:
space:
mode:
Diffstat (limited to 'modules/translation')
-rw-r--r--modules/translation/translation.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/translation/translation.module b/modules/translation/translation.module
index c4af9c0b8..4fe79fba9 100644
--- a/modules/translation/translation.module
+++ b/modules/translation/translation.module
@@ -92,7 +92,7 @@ function translation_form_alter(&$form, $form_state, $form_id) {
// Description based on text from locale.module.
$form['workflow']['language']['#description'] = t('Enable multilingual support for this content type. If enabled, a language selection field will be added to the editing form, allowing you to select from one of the <a href="!languages">enabled languages</a>. You can also turn on translation for this content type, which lets you have content translated to any of the enabled languages. If disabled, new posts are saved with the default language. Existing content will not be affected by changing this option.', array('!languages' => url('admin/settings/language')));
}
- elseif ($form['#id'] == 'node-form' && translation_supported_type($form['#node']->type)) {
+ elseif (isset($form['#id']) && $form['#id'] == 'node-form' && translation_supported_type($form['#node']->type)) {
$node = $form['#node'];
if (!empty($node->translation_source)) {
// We are creating a translation. Add values and lock language field.