Skip to content

Commit

Permalink
Fixed issue: Problem importing survey archive if token table was comp…
Browse files Browse the repository at this point in the history
…letely empty on export
  • Loading branch information
c-schmitz committed Nov 2, 2012
1 parent 5ca3037 commit 6d8af20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions application/helpers/admin/import_helper.php
Expand Up @@ -4053,6 +4053,12 @@ function XMLImportTokens($sFullFilepath,$iSurveyID,$sCreateMissingAttributeField
return $results;
}

if (!isset($xml->tokens->fields))
{
$results['tokens']=0;
return $results;
}

$results['tokens']=0;
$results['tokenfieldscreated']=0;

Expand Down

0 comments on commit 6d8af20

Please sign in to comment.