diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/contact/contact.pages.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc index 83aff878f..041ad4d5f 100644 --- a/modules/contact/contact.pages.inc +++ b/modules/contact/contact.pages.inc @@ -35,7 +35,7 @@ function contact_mail_page() { } if (count($categories) > 0) { - $form['#token'] = $user->name . $user->mail; + $form['#token'] = $user->uid ? $user->name . $user->mail : ''; $form['contact_information'] = array('#value' => filter_xss_admin(variable_get('contact_form_information', t('You can leave a message using the contact form below.')))); $form['name'] = array('#type' => 'textfield', '#title' => t('Your name'), |