Commit dc423845 authored by Dries's avatar Dries

- Patch #329019 by dww, sun: fixed PHP warning.

parent 63beb458
......@@ -1503,7 +1503,7 @@ function form_get_options($element, $key) {
* @ingroup themeable
*/
function theme_fieldset($element) {
if ($element['#collapsible']) {
if (!empty($element['#collapsible'])) {
drupal_add_js('misc/collapse.js');
if (!isset($element['#attributes']['class'])) {
......@@ -1511,7 +1511,7 @@ function theme_fieldset($element) {
}
$element['#attributes']['class'] .= ' collapsible';
if ($element['#collapsed']) {
if (!empty($element['#collapsed'])) {
$element['#attributes']['class'] .= ' collapsed';
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment