Skip to content

Commit

Permalink
Fixed issue #6686: "Restart this survey" link is incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Oct 12, 2012
1 parent 8861127 commit edb5f1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -358,7 +358,7 @@ function run($surveyid,$args) {
//field for limereplace stuff, and do transformations!
$thissurvey['surveyls_url'] = passthruReplace($thissurvey['surveyls_url'], $thissurvey);
$thissurvey['surveyls_url'] = templatereplace($thissurvey['surveyls_url'],array('SID'=>$thissurvey['sid'],
'SAVEDID'=>$_SESSION[$LEMsessid]['srid'],
'SAVEDID'=>(isset($_SESSION[$LEMsessid]['srid']) ? $_SESSION[$LEMsessid]['srid'] : ''),
'TOKEN'=>(isset($clienttoken) ? $clienttoken : ''),
)); // to do INSERTANS substitutions

Expand Down
2 changes: 1 addition & 1 deletion application/helpers/replacements_helper.php
Expand Up @@ -412,7 +412,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de

if (returnGlobal('token'))
{
$_clearall .= "&token=" . urlencode(trim(sanitize_token(strip_tags(returnGlobal('token')))));
$_clearall .= "?token=" . urlencode(trim(sanitize_token(strip_tags(returnGlobal('token')))));
}
$_clearall .= "', '_self')}\" />";
}
Expand Down

0 comments on commit edb5f1a

Please sign in to comment.