summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-08-11 16:13:45 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-08-11 16:13:45 +0000
commitfb71555204091ac14d15ffce111cd946521ba0da (patch)
treedc54c62fcb2fc62641a6806ee4be739db58e7ca3 /modules
parenta5fcb369fb411d8ed3a945105a89a146ab96052e (diff)
downloadbrdo-fb71555204091ac14d15ffce111cd946521ba0da.tar.gz
brdo-fb71555204091ac14d15ffce111cd946521ba0da.tar.bz2
#166237 by jbratton: fix two notices on contact pages for anonymous users
Diffstat (limited to 'modules')
-rw-r--r--modules/contact/contact.pages.inc2
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'),