Skip to content

Commit

Permalink
Fixed issue: PHP notice message when trying to open response queXML file
Browse files Browse the repository at this point in the history
Dev: only with debug mode turned on
  • Loading branch information
dominikvitt committed Jun 3, 2019
1 parent 5ff4910 commit 3f6d10d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/export_helper.php
Expand Up @@ -1318,7 +1318,7 @@ function quexml_set_default_value(&$element, $iResponseID, $qid, $iSurveyID, $fi
$search = "sqid";
}
foreach ($fieldmap as $key => $detail) {
if ($detail[$search] == $qid) {
if (array_key_exists($search, $detail) && $detail[$search] == $qid) {
if (($fieldadd == false || substr($key, (strlen($fieldadd) * -1)) == $fieldadd) &&
($usesaid == false || ($detail["aid"] == $usesaid)) &&
($usesscale == false || ($detail["scale_id"] == $usesscale))) {
Expand Down

0 comments on commit 3f6d10d

Please sign in to comment.