Skip to content

Commit

Permalink
Fixed issue: Replacing @@SURVEYURL@@ incorrectly in RPC (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Feb 3, 2017
1 parent b9332f6 commit c760cd7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions application/helpers/admin/token_helper.php
Expand Up @@ -131,12 +131,12 @@ function emailTokens($iSurveyID,$aResultTokens,$sType)

if (isset($barebone_link))
{
$modsubject = str_replace("@@SURVEYURL@@", $barebone_link, $modsubject);
$modmessage = str_replace("@@SURVEYURL@@", $barebone_link, $modmessage);
$modsubject = str_replace("@@SURVEYURL@@", $barebone_link, $sSubject);
$modmessage = str_replace("@@SURVEYURL@@", $barebone_link, $sMessage);
}
$modsubject = Replacefields($sSubject, $fieldsarray);
$modmessage = Replacefields($sMessage, $fieldsarray);

$modsubject = Replacefields($modsubject, $fieldsarray);
$modmessage = Replacefields($modmessage, $fieldsarray);

if (isset($aTokenRow['validfrom']) && trim($aTokenRow['validfrom']) != '' && convertDateTimeFormat($aTokenRow['validfrom'], 'Y-m-d H:i:s', 'U') * 1 > date('U') * 1)
{
Expand Down

0 comments on commit c760cd7

Please sign in to comment.