Skip to content

Commit

Permalink
Deleting core uses of sql_isnull(). MDL-12970 ; merged from 19_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jan 27, 2008
1 parent 04150e0 commit 0441970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/quiz/report/overview/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ function display($quiz, $cm, $course) {
$select .= ', grade ';
$from .= ' LEFT JOIN '.$CFG->prefix.'question_sessions qns ON qns.attemptid = qa.id '.
'LEFT JOIN '.$CFG->prefix.'question_states qs ON qs.id = qns.newgraded ';
$where .= ' AND ('.sql_isnull('qns.questionid').' OR qns.questionid = '.$qid.')';
$where .= ' AND (qns.questionid IS NULL OR qns.questionid = '.$qid.')';
$newsort[] = 'grade '.(strpos($sortpart, 'ASC')? 'ASC' : 'DESC');
$questionsort = true;
}
Expand Down Expand Up @@ -668,4 +668,4 @@ function display($quiz, $cm, $course) {
}
}

?>
?>

0 comments on commit 0441970

Please sign in to comment.