Skip to content

Commit

Permalink
MDL-18243 data module filter - make it cross-db by using sql_compare_…
Browse files Browse the repository at this point in the history
…text() ; merged from 19_STABLE
  • Loading branch information
stronk7 committed Feb 16, 2009
1 parent ee0c136 commit 23a6c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/data/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function data_filter($courseid, $text) {
'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;
Expand Down

0 comments on commit 23a6c9d

Please sign in to comment.