From 91170a4fbaf20c21f993b40829229e04b417466b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 11 May 2005 16:36:06 +0000 Subject: - Fixed a braino. --- modules/contact.module | 2 +- modules/contact/contact.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/contact.module b/modules/contact.module index 1588aa556..01c4176ef 100644 --- a/modules/contact.module +++ b/modules/contact.module @@ -279,7 +279,7 @@ function contact_mail_page() { drupal_goto('contact'); } } - else { + else if ($user->uid) { $edit['name'] = $user->name; $edit['mail'] = $user->mail; } diff --git a/modules/contact/contact.module b/modules/contact/contact.module index 1588aa556..01c4176ef 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -279,7 +279,7 @@ function contact_mail_page() { drupal_goto('contact'); } } - else { + else if ($user->uid) { $edit['name'] = $user->name; $edit['mail'] = $user->mail; } -- cgit v1.2.3