Permalink
Browse files

MDL-31985 - fix quotes in filter

  • Loading branch information...
1 parent 4d2f89f commit 5796c9223c4f603f83a53ef4c26ad50107b0121d @danmarsden danmarsden committed Jan 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 filter/data/filter.php
View
@@ -71,7 +71,7 @@ public function filter($text, array $options = array()) {
JOIN {data_content} dc ON dc.fieldid = df.id AND dc.recordid = dr.id
WHERE d.course ' . $coursesql . '
AND df.type = \'text\'
- AND ' . $DB->sql_compare_text('df.param1', 1) . ' = 1';
+ AND ' . $DB->sql_compare_text('df.param1', 1) . " = '1'";
if (!$contents = $DB->get_records_sql($sql, $params)) {
$nothingtodo = true;

0 comments on commit 5796c92

Please sign in to comment.