]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18243 data module filter - make it cross-db by using sql_compare_text() ; merged...
authorstronk7 <stronk7>
Mon, 16 Feb 2009 17:58:50 +0000 (17:58 +0000)
committerstronk7 <stronk7>
Mon, 16 Feb 2009 17:58:50 +0000 (17:58 +0000)
mod/data/filter.php

index 90025272c43cdac18c5f5c5a7cfd8ed6ed71a4c5..0fa1283b1b70970bb328dc8b2f70d8803e7ae3ce 100644 (file)
@@ -39,7 +39,7 @@
                             'AND d.id = dr.dataid ' .
                             'AND dr.id = dc.recordid ' .
                             "AND df.type = 'text' " .
-                            'AND df.param1 = 1';
+                            "AND " . $DB->sql_compare_text('df.param1', 1) . " = '1'";
 
             if (!$datacontents = $DB->get_records_sql($sql, array($courseid))) {
                 return $text;