From 06fe6cae2d7cf5ed663c3d1225206113f3b5824f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 13 Apr 2010 15:13:41 +0000 Subject: - Patch #763048 by catch: critical bug: remove drupal_unpack()() due to namespacing collisions. --- modules/contact/contact.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/contact') 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 personal contact form 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"))), ); } -- cgit v1.2.3