<?php if ($this->countModules($sidebar2)) : ?>
<div class="t3-sidebar t3-sidebar-2 <?php echo $this->getClass($layout, $col) ?><?php $this->_c($sidebar2)?>" <?php echo $this->getData ($layout, $col++) ?>>
<jdoc:include type="modules" name="<?php $this->_p($sidebar2) ?>" style="T3Xhtml" />
</div>
<!-- //SIDEBAR 2 -->
<?php endif ?>
If I change "T3Xhtml" to "xhtml" it works, but that is just a work around.
php 5.4.7
joomla 3.1.5