diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-13 15:13:41 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-13 15:13:41 +0000 |
commit | 06fe6cae2d7cf5ed663c3d1225206113f3b5824f (patch) | |
tree | 6e2dec1abd0adc8c779a5839ad60b04bbb93b224 /modules/contact | |
parent | 906928c12acfd0c68b03a967473b4a0c4c1639cc (diff) | |
download | brdo-06fe6cae2d7cf5ed663c3d1225206113f3b5824f.tar.gz brdo-06fe6cae2d7cf5ed663c3d1225206113f3b5824f.tar.bz2 |
- Patch #763048 by catch: critical bug: remove drupal_unpack()() due to namespacing collisions.
Diffstat (limited to 'modules/contact')
-rw-r--r-- | modules/contact/contact.module | 4 |
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"))), ); } |