Skip to content

Commit

Permalink
Dev: removed unwanted code
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Aug 20, 2018
1 parent 8dcdc8a commit 6411fda
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions application/helpers/frontend_helper.php
Expand Up @@ -1654,14 +1654,7 @@ function doAssessment($surveyid)

$assessment['subtotal_score'] = (isset($subtotal)) ? $subtotal : '';
$assessment['total_score'] = (isset($total)) ? $total : '';
// token data for placeholder replacements
$token = Token::model($surveyid)->findByAttributes(array('token' => $_SESSION['survey_'.$surveyid]['token']));
if ($token !== null){
$assessment['token']['email'] = $survey->anonymized === 'N'?$token->email:'';
$assessment['token']['firstname'] = $survey->anonymized === 'N'?$token->firstname:'';
$assessment['token']['lastname'] = $survey->anonymized === 'N'?$token->lastname:'';
$assessment['token']['token'] = $survey->anonymized === 'N'?$token->token:'';
}

//$aDatas = array('total' => $total, 'assessment' => $assessment, 'subtotal' => $subtotal, );
return array('show'=>($assessment['subtotal']['show'] || $assessment['total']['show']), 'datas' => $assessment);

Expand Down

0 comments on commit 6411fda

Please sign in to comment.