Skip to content

Commit

Permalink
Fixed issue #4381: Variety of crashes with MS SQL DB
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8778 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Jun 2, 2010
1 parent 3c9d27c commit ef58135
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions admin/conditionshandling.php
Expand Up @@ -578,8 +578,7 @@
."FROM {$dbprefix}questions "
."WHERE parent_qid={$rows['qid']} "
."AND language='".GetBaseLanguageFromSurveyID($surveyid)."' "
."ORDER BY question_order, "
."question";
."ORDER BY question_order";

$aresult=db_execute_assoc($aquery) or safe_die ("Couldn't get answers to Array questions<br />$aquery<br />".$connect->ErrorMsg());

Expand Down Expand Up @@ -717,8 +716,7 @@
."FROM {$dbprefix}questions "
."WHERE parent_qid={$rows['qid']} "
."AND language='".GetBaseLanguageFromSurveyID($surveyid)."' "
."ORDER BY question_order, "
."question";
."ORDER BY question_order";
$aresult=db_execute_assoc($aquery) or safe_die ("Couldn't get answers to Array questions<br />$aquery<br />".$connect->ErrorMsg());

while ($arows = $aresult->FetchRow())
Expand Down Expand Up @@ -774,8 +772,7 @@
."FROM {$dbprefix}questions "
."WHERE parent_qid={$rows['qid']} "
."AND language='".GetBaseLanguageFromSurveyID($surveyid)."' "
."ORDER BY question_order, "
."question";
."ORDER BY question_order";
$aresult=db_execute_assoc($aquery) or safe_die ("Couldn't get answers to Array questions<br />$aquery<br />".$connect->ErrorMsg());

while ($arows = $aresult->FetchRow())
Expand Down Expand Up @@ -831,8 +828,7 @@
."FROM {$dbprefix}questions "
."WHERE parent_qid={$rows['qid']} "
."AND language='".GetBaseLanguageFromSurveyID($surveyid)."' "
."ORDER BY question_order, "
."question";
."ORDER BY question_order";
$aresult=db_execute_assoc($aquery) or safe_die ("Couldn't get answers to this question<br />$aquery<br />".$connect->ErrorMsg());

while ($arows=$aresult->FetchRow())
Expand Down

0 comments on commit ef58135

Please sign in to comment.