Skip to content

Commit

Permalink
Dev: remove unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Oct 17, 2016
1 parent 3d21e0b commit 528db42
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions application/helpers/frontend_helper.php
Expand Up @@ -988,7 +988,6 @@ function buildsurveysession($surveyid,$preview=false)

// Scenario => Captcha required
if($scenarios['captchaRequired'] && !$preview) {
$FlashError = '';

//Apply the captcYii::app()->getRequest()->getPost($id);haEnabled flag to the partial
$aEnterTokenData['bCaptchaEnabled'] = true;
Expand All @@ -1007,10 +1006,6 @@ function buildsurveysession($surveyid,$preview=false)
}
}

//If there were errors, display through yii->FlashMessage
if($FlashError !== ""){
$aEnterTokenData['errorMessage'] = $FlashError;
}
$aEnterTokenData['aEnterErrors']=$aEnterErrors;
$renderWay = getRenderWay($renderToken, $renderCaptcha);
$redata = compact(array_keys(get_defined_vars()));
Expand Down Expand Up @@ -1271,7 +1266,7 @@ function testCaptcha(array $aEnterTokenData, array $subscenarios, $surveyid, $lo
{
if ($loadsecurity)
{ // was a bad answer
$FlashError.=gT("Your answer to the security question was not correct - please try again.")."<br/>\n";
$FlashError.=gT("Your answer to the security question was not correct - please try again.");
}
$renderCaptcha='main';
}
Expand Down

0 comments on commit 528db42

Please sign in to comment.