Skip to content

Commit

Permalink
Fixed issue #4535: SQL statement error when using question type 'Mult…
Browse files Browse the repository at this point in the history
…iple choice with comments' and MSSQL server - patch kindly by jdehaese

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9068 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Aug 17, 2010
1 parent 885f1fa commit 9033497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qanda.php
Expand Up @@ -3192,7 +3192,7 @@ function do_multiplechoice_withcomments($ia)
global $dbprefix, $clang, $thissurvey;

$attribute_ref=false;
$qaquery = "SELECT qid,attribute FROM ".db_table_name('question_attributes')." WHERE value='".strtolower($ia[2])."'";
$qaquery = "SELECT qid,attribute FROM ".db_table_name('question_attributes')." WHERE value LIKE '".strtolower($ia[2])."'";
$qaresult = db_execute_assoc($qaquery); //Checked
$attribute_ref=false;
while($qarow = $qaresult->FetchRow())
Expand Down

0 comments on commit 9033497

Please sign in to comment.