Navigation Menu

Skip to content

Commit

Permalink
Fixed issue #07047: Unable to reload a saved survey if it's nor anony…
Browse files Browse the repository at this point in the history
…mous without token table

Dec: test if isset session var before doing job: work for token, maybe other too
  • Loading branch information
Shnoulle committed Dec 7, 2012
1 parent bea0587 commit b2a5cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/frontend_helper.php
Expand Up @@ -108,7 +108,7 @@ function loadanswers()
else
{
//Only make session variables for those in insertarray[]
if (in_array($column, $_SESSION['survey_'.$surveyid]['insertarray']))
if (in_array($column, $_SESSION['survey_'.$surveyid]['insertarray']) && isset($_SESSION['survey_'.$surveyid]['fieldmap'][$column]))
{
if (($_SESSION['survey_'.$surveyid]['fieldmap'][$column]['type'] == 'N' ||
$_SESSION['survey_'.$surveyid]['fieldmap'][$column]['type'] == 'K' ||
Expand Down

0 comments on commit b2a5cb3

Please sign in to comment.