From: stronk7 <stronk7>
Date: Sun, 27 Jan 2008 01:28:25 +0000 (+0000)
Subject: Deleting core uses of sql_isnull(). MDL-12970 ; merged from 19_STABLE
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=044197030b8fbb55b909f78c3ce991713fceddc3;p=moodle.git

Deleting core uses of sql_isnull(). MDL-12970 ; merged from 19_STABLE
---

diff --git a/mod/quiz/report/overview/report.php b/mod/quiz/report/overview/report.php
index d2c15952d4..75865a6fb9 100644
--- a/mod/quiz/report/overview/report.php
+++ b/mod/quiz/report/overview/report.php
@@ -387,7 +387,7 @@ class quiz_report extends quiz_default_report {
                             $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;
                         }
@@ -668,4 +668,4 @@ document.getElementById("noscriptmenuaction").style.display = "none";
     }
 }
 
-?>
\ No newline at end of file
+?>