summaryrefslogtreecommitdiff
path: root/modules/contact/contact.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/contact/contact.module')
-rw-r--r--modules/contact/contact.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/contact/contact.module b/modules/contact/contact.module
index 183a45c2b..06103eae2 100644
--- a/modules/contact/contact.module
+++ b/modules/contact/contact.module
@@ -138,7 +138,7 @@ function _contact_personal_tab_access(stdClass $account) {
// If the requested user has disabled their contact form, or this preference
// has not yet been saved, do not allow users to contact them.
- if (empty($account->contact)) {
+ if (empty($account->data['contact'])) {
return FALSE;
}
@@ -227,7 +227,7 @@ function contact_form_user_profile_form_alter(&$form, &$form_state) {
$form['contact']['contact'] = array(
'#type' => 'checkbox',
'#title' => t('Personal contact form'),
- '#default_value' => !empty($account->contact) ? $account->contact : FALSE,
+ '#default_value' => !empty($account->data['contact']) ? $account->data['contact'] : FALSE,
'#description' => t('Allow other users to contact you via a <a href="@url">personal contact form</a> which keeps your e-mail address hidden. Note that some privileged users such as site administrators are still able to contact you even if you choose to disable this feature.', array('@url' => url("user/$account->uid/contact"))),
);
}