Skip to content

Commit

Permalink
Fixed issue: Template editor not working
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Oct 16, 2012
1 parent d7e61a5 commit 17e3b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/replacements_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
{
$_endtext = $thissurvey['surveyls_endtext'];
}
if (isset($_SESSION['survey_'.$surveyid]) && isset($_SESSION['survey_'.$surveyid]['register_errormsg']))
if (isset($surveyid) && isset($_SESSION['survey_'.$surveyid]) && isset($_SESSION['survey_'.$surveyid]['register_errormsg']))
{
$register_errormsg=$_SESSION['survey_'.$surveyid]['register_errormsg'];
unset($_SESSION['survey_'.$surveyid]['register_errormsg']);
Expand Down

0 comments on commit 17e3b3f

Please sign in to comment.