diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-07 16:35:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-07 16:35:03 +0000 |
commit | f3a8fa9ea8cc3e807f066c43e6ab240c204941ee (patch) | |
tree | 1fde4a9b48e241ec81c08e986eae7bad5cf9d78e /modules/contact | |
parent | dde5c67ba041dc65588377808b1943fdd3b57bf6 (diff) | |
download | brdo-f3a8fa9ea8cc3e807f066c43e6ab240c204941ee.tar.gz brdo-f3a8fa9ea8cc3e807f066c43e6ab240c204941ee.tar.bz2 |
- Patch #763444 by jpmckinney: user_cookie_save() has a weird/awkward function signature.
Diffstat (limited to 'modules/contact')
-rw-r--r-- | modules/contact/contact.pages.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc index dfe511069..2ff99090a 100644 --- a/modules/contact/contact.pages.inc +++ b/modules/contact/contact.pages.inc @@ -139,7 +139,7 @@ function contact_site_form_submit($form, &$form_state) { // Save the anonymous user information to a cookie for reuse. if (!$user->uid) { - user_cookie_save($values); + user_cookie_save(array_intersect_key($values, array_flip(array('name', 'mail')))); } // Get the to and from e-mail addresses. @@ -272,7 +272,7 @@ function contact_personal_form_submit($form, &$form_state) { // Save the anonymous user information to a cookie for reuse. if (!$user->uid) { - user_cookie_save($values); + user_cookie_save(array_intersect_key($values, array_flip(array('name', 'mail')))); } // Get the to and from e-mail addresses. |