summaryrefslogtreecommitdiff
path: root/modules/locale/locale.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/locale/locale.module')
-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 b06152bd0..2fc47a299 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -255,7 +255,7 @@ function locale_form_alter(&$form, $form_state, $form_id) {
// Language field for nodes
default:
- if ($form['#id'] == 'node-form') {
+ if (isset($form['#id']) && $form['#id'] == 'node-form') {
if (isset($form['#node']->type) && variable_get('language_' . $form['#node']->type, 0)) {
$form['language'] = array(
'#type' => 'select',