Skip to content

Commit

Permalink
Fixed issue #6192 - PHP notice "undefined variable" when using end URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jcleeland committed Jul 20, 2012
1 parent c262830 commit e4887ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -486,7 +486,9 @@ function run($surveyid,$args) {
$url = passthruReplace($thissurvey['surveyls_url'], $thissurvey);
$url = templatereplace($url); // TODO - check safety of this - provides access to any replacement value
$url = str_replace("{SAVEDID}", $saved_id, $url); // to activate the SAVEDID in the END URL
$url = str_replace("{TOKEN}", $clienttoken, $url); // to activate the TOKEN in the END URL
if(isset($clienttoken) && $clienttoken) {
$url = str_replace("{TOKEN}", $clienttoken, $url); // to activate the TOKEN in the END URL
}
$url = str_replace("{SID}", $surveyid, $url); // to activate the SID in the END URL
$url = str_replace("{LANG}", $clang->getlangcode(), $url); // to activate the LANG in the END URL
header("Location: {$url}");
Expand Down

0 comments on commit e4887ef

Please sign in to comment.