From fb71555204091ac14d15ffce111cd946521ba0da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Sat, 11 Aug 2007 16:13:45 +0000 Subject: #166237 by jbratton: fix two notices on contact pages for anonymous users --- modules/contact/contact.pages.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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'), -- cgit v1.2.3