diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-06-29 17:27:58 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-06-29 17:27:58 +0000 |
commit | cbbbd8302f1119d051ef3fff85c7abf44270727e (patch) | |
tree | 1896fe73ad9cef4acda69a7e3e6e4e3e0364bf71 | |
parent | 23bbb003b94c5172d779fdf81ffc950e8cedc2a8 (diff) | |
download | brdo-cbbbd8302f1119d051ef3fff85c7abf44270727e.tar.gz brdo-cbbbd8302f1119d051ef3fff85c7abf44270727e.tar.bz2 |
- Patch #495598 by jrchamp: use explode() instaed of spit().
-rw-r--r-- | includes/form.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/form.inc b/includes/form.inc index 05ecbc135..30d394cc6 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -1205,7 +1205,7 @@ function _form_builder_ie_cleanup($form, &$form_state) { * @param $edit * The incoming POST data to populate the form element. If this is FALSE, * the element's default value should be returned. -* @param $form_state + * @param $form_state * A keyed array containing the current state of the form. * @return * The data that will appear in the $form_state['values'] collection @@ -1225,7 +1225,7 @@ function form_type_image_button_value($form, $edit, $form_state) { // button. We'll find this element in the #post data, and search // in the same spot for its name, with '_x'. $post = $form_state['input']; - foreach (split('\[', $form['#name']) as $element_name) { + foreach (explode('[', $form['#name']) as $element_name) { // chop off the ] that may exist. if (substr($element_name, -1) == ']') { $element_name = substr($element_name, 0, -1); |