Code
$expanded = (($loop_count == 1 && $behavior == 'first') || $behavior == 'all') ? 'true' : 'false';
$title_classes = 'accordion-toggle';
$title_classes .= $expanded ? '' : ' collapsed';
must be fixed because any string of 'true' or 'false' will be cast to boolean .
I would like to suggest fix for it
$expanded = (($loop_count == 1 && $behavior == 'first') || $behavior == 'all') ? 'true' : 'false';
$title_classes = 'accordion-toggle';
$title_classes .= $expanded == 'true' ? '' : ' collapsed';
I use it in template of my own custom theme so patch is not needed in my case but it is worth making a patch.
Closed: won't fix
3.5
Accordion
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.