diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-04-01 23:54:57 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-04-01 23:54:57 +0000 |
commit | 812795a9bdc90a48e75b16524c792ae884a4fe91 (patch) | |
tree | d77cce1d1fd95b8d9441211876cd69a0572442e3 /modules | |
parent | 94355dd832df5a0f1bf5e9716e0eb8a23eb49f1b (diff) | |
download | brdo-812795a9bdc90a48e75b16524c792ae884a4fe91.tar.gz brdo-812795a9bdc90a48e75b16524c792ae884a4fe91.tar.bz2 |
#56722, Variable not passed by reference in comment.module, patch by chx
Diffstat (limited to 'modules')
-rw-r--r-- | modules/contact.module | 3 | ||||
-rw-r--r-- | modules/contact/contact.module | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/contact.module b/modules/contact.module index da34b83e0..076d284b0 100644 --- a/modules/contact.module +++ b/modules/contact.module @@ -463,8 +463,9 @@ function contact_mail_page() { } else { // If there is only one category, store its cid. + $category_keys = array_keys($categories); $form['cid'] = array('#type' => 'value', - '#value' => array_shift(array_keys($categories)), + '#value' => array_shift($category_keys), ); } $form['message'] = array('#type' => 'textarea', diff --git a/modules/contact/contact.module b/modules/contact/contact.module index da34b83e0..076d284b0 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -463,8 +463,9 @@ function contact_mail_page() { } else { // If there is only one category, store its cid. + $category_keys = array_keys($categories); $form['cid'] = array('#type' => 'value', - '#value' => array_shift(array_keys($categories)), + '#value' => array_shift($category_keys), ); } $form['message'] = array('#type' => 'textarea', |