Skip to content

Commit

Permalink
Fixed issue #11651: Multiple question exportation to SPSS unclear
Browse files Browse the repository at this point in the history
Dev: use isset for !is_null, if it's null : not answered
  • Loading branch information
Shnoulle committed Sep 16, 2016
1 parent 7d42ff6 commit fbbca82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/helpers/export_helper.php
Expand Up @@ -180,9 +180,11 @@ function SPSSExportData ($iSurveyID, $iLength, $na = '', $q='\'', $header=FALSE)
if ($row[$fieldno] == 'Y')
{
echo($q. 1 .$q);
} else
} elseif(isset($row[$fieldno]))
{
echo($q. 0 .$q);
} else {
echo($na);
}
} elseif (!$field['hide']) {
$strTmp=mb_substr(stripTagsFull($row[$fieldno]), 0, $iLength);
Expand Down

0 comments on commit fbbca82

Please sign in to comment.