Skip to content

Commit

Permalink
Fixed issue #3889: When exporting result data from a Dual Scale quest…
Browse files Browse the repository at this point in the history
…ion on MSSQL it gives an error

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8144 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Dec 11, 2009
1 parent 08ee8e1 commit 9177d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/exportresults.php
Expand Up @@ -758,12 +758,12 @@
if (mb_substr($fieldinfo,-1) == '0')
{ //TIBO
$strlabel = "1";
$lq = "select a.*, l.*, t.label_name as labeltitle from {$dbprefix}answers as a, {$dbprefix}labels as l, {$dbprefix}labelsets as t where a.code='$faid' and qid=$fqid AND l.lid = $flid AND a.language='$surveybaselang' AND t.lid=$flid group by l.lid";
$lq = "select a.*, l.*, t.label_name as labeltitle from {$dbprefix}answers as a, {$dbprefix}labels as l, {$dbprefix}labelsets as t where a.code='$faid' and qid=$fqid AND l.lid = $flid AND a.language='$surveybaselang' AND t.lid=$flid";
}
else
{
$strlabel = "2";
$lq = "select a.*, l.*, t.label_name as labeltitle from {$dbprefix}answers as a, {$dbprefix}labels as l, {$dbprefix}labelsets as t where a.code='$faid' and qid=$fqid AND l.lid = $flid1 AND a.language='$surveybaselang' AND t.lid=$flid1 group by l.lid";
$lq = "select a.*, l.*, t.label_name as labeltitle from {$dbprefix}answers as a, {$dbprefix}labels as l, {$dbprefix}labelsets as t where a.code='$faid' and qid=$fqid AND l.lid = $flid1 AND a.language='$surveybaselang' AND t.lid=$flid1";
}
$lr = db_execute_assoc($lq);
$j=0;
Expand Down

0 comments on commit 9177d19

Please sign in to comment.