error ) { echo $this->translator->translate( "main_quiz_error_$this->error" ); return; } $id = "quiz_stats_tab_" . time(); echo "
".print_r($answer->users,true).""); $_answer = $answer->description; $maxLength = 17; if( $maxLength < strlen( $_answer ) ) { $_answer = substr( $_answer , 0 , $maxLength ); do { $lastChar = substr( $_answer , strlen( $_answer ) - 1 , 1 ); if( " " == $lastChar ) { $_answer = substr( $_answer , 0 , strlen( $_answer ) - 1 ); } else { break; } } while( true ); $_answer .= '...'; } echo "