Commit fb715552 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#166237 by jbratton: fix two notices on contact pages for anonymous users

parent a5fcb369
......@@ -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'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment