search for the first text of a Questgroup recursively (Issue #77)

This commit is contained in:
coderkun 2014-04-27 03:50:25 +02:00
commit 0294040063
3 changed files with 53 additions and 16 deletions

View file

@ -126,10 +126,9 @@
// Get first Questgroup text
$text = $this->Questgroups->getFirstQuestgroupText($questgroup['id']);
if(!empty($text))
if(!is_null($text))
{
$text = \hhu\z\Utils::shortenString($text['text'], 100, 120).' …';
$questgroup['text'] = $text;
$questgroup['text'] = \hhu\z\Utils::shortenString($text, 100, 120).' …';
}
// Get cumulated data