diff options
author | David Rothstein <drothstein@gmail.com> | 2014-11-02 14:57:43 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-11-02 14:57:43 -0500 |
commit | bc7940aa6a876eeaaa301f54747091166f995b09 (patch) | |
tree | 77e71ae43f7245f156f4dbbd64e3f07a6a75cb43 /includes | |
parent | f68c6ce8495dbdf396676da1e323339b725b0d13 (diff) | |
download | brdo-bc7940aa6a876eeaaa301f54747091166f995b09.tar.gz brdo-bc7940aa6a876eeaaa301f54747091166f995b09.tar.bz2 |
Issue #2058761 by kirby14, thedavidmeister: PHP notice when #attributes is not set with #theme_wrappers 'container'.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/form.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/form.inc b/includes/form.inc index b139e43f7..da1caa819 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -3311,6 +3311,8 @@ function form_process_container($element, &$form_state) { */ function theme_container($variables) { $element = $variables['element']; + // Ensure #attributes is set. + $element += array('#attributes' => array()); // Special handling for form elements. if (isset($element['#array_parents'])) { |