MDL-18243, MDL-16961 data module filter - make it cross-db by using sql_compare_text()

This commit is contained in:
stronk7
2009-05-06 15:54:04 +00:00
parent 42a7f43ee2
commit bee3f66eb0
+1 -1
View File
@@ -39,7 +39,7 @@
'AND d.id = dr.dataid ' .
'AND dr.id = dc.recordid ' .
"AND df.type = 'text' " .
'AND df.param1 = 1';
"AND " . sql_compare_text('df.param1', 1) . " = '1'";
if (!$datacontents = get_records_sql($sql)) {
return $text;