correct check for next questgroup
This commit is contained in:
parent
e9016bc014
commit
9b47c263ae
2 changed files with 4 additions and 2 deletions
|
|
@ -308,7 +308,9 @@
|
||||||
if(is_null($relatedQuesttext))
|
if(is_null($relatedQuesttext))
|
||||||
{
|
{
|
||||||
$nextQuestgroup = $this->Questgroups->getNextQuestgroup($questgroup['id']);
|
$nextQuestgroup = $this->Questgroups->getNextQuestgroup($questgroup['id']);
|
||||||
$nextQuestgroup['hierarchy'] = $this->Questgroupshierarchy->getHierarchyForQuestgroup($nextQuestgroup['id']);
|
if(!is_null($nextQuestgroup)) {
|
||||||
|
$nextQuestgroup['hierarchy'] = $this->Questgroupshierarchy->getHierarchyForQuestgroup($nextQuestgroup['id']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@
|
||||||
</section>
|
</section>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if(!is_null($nextquests) || !is_null($nextquestgroup)) : ?>
|
<?php if(count($nextquests) > 0 || !is_null($nextquestgroup)) : ?>
|
||||||
<section>
|
<section>
|
||||||
<h1><?=_('Continuation')?></h1>
|
<h1><?=_('Continuation')?></h1>
|
||||||
<?php if(count($nextquests) > 0) : ?>
|
<?php if(count($nextquests) > 0) : ?>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue