do not show scrollbox for Questgroups if there is no text to display

This commit is contained in:
coderkun 2014-04-22 13:47:09 +02:00
commit 8edfea4c21

View file

@ -12,11 +12,13 @@
<?php else : ?>
<h2><?=$questgroup['title']?></h2>
<?php endif ?>
<?php if(count($texts) > 0): ?>
<div id="qtextbox">
<?php foreach($texts as &$text) : ?>
<p><?=\hhu\z\Utils::t($text['text'])?></p>
<?php endforeach ?>
</div>
<?php endif ?>
<?php if(!is_null($childquestgroupshierarchy)) : ?>
<?php foreach($childquestgroupshierarchy as &$hierarchy) : ?>