Skip to content

Commit

Permalink
MDL-22441 Invalid SQL (must not have ; at the end )
Browse files Browse the repository at this point in the history
  • Loading branch information
ppichet committed May 11, 2010
1 parent e0c9ba5 commit 9e45963
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions question/type/calculated/questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ function import_datasets($question){
"type = '1'
AND name = ?
AND category = ?
ORDER BY id DESC;", array($dataset->name, $question->category)
ORDER BY id DESC ", array($dataset->name, $question->category)
)) { // so there is at least one
$sharedatasetdef = array_shift($sharedatasetdefs);
if ( $sharedatasetdef->options == $datasetdef->options ){// identical so use it
Expand Down Expand Up @@ -672,7 +672,7 @@ function delete_question($questionid) {
if (!$DB->get_records_select(
'question_datasets',
"question != ?
AND datasetdefinition = ?;", array($questionid, $dataset->datasetdefinition))){
AND datasetdefinition = ? ", array($questionid, $dataset->datasetdefinition))){
$DB->delete_records('question_dataset_definitions', array('id' => $dataset->datasetdefinition));
$DB->delete_records('question_dataset_items', array('definition' => $dataset->datasetdefinition));
}
Expand Down

0 comments on commit 9e45963

Please sign in to comment.