mod-data MDLSITE-970 Raarrrrrrrr fixed way old bug from dml conversion
authorSam Hemelryk <sam@moodle.com>
Fri, 1 Oct 2010 08:51:26 +0000 (08:51 +0000)
committerSam Hemelryk <sam@moodle.com>
Fri, 1 Oct 2010 08:51:26 +0000 (08:51 +0000)
mod/data/field/menu/field.class.php

index 80069ac..4368279 100755 (executable)
@@ -60,7 +60,7 @@ class data_field_menu extends data_field_base {
         $usedoptions = array();
         $sql = "SELECT DISTINCT content
                   FROM {data_content}
-                 WHERE fieldid=: AND content IS NOT NULL";
+                 WHERE fieldid=? AND content IS NOT NULL";
         if ($used = $DB->get_records_sql($sql, array($this->field->id))) {
             foreach ($used as $data) {
                 $value = $data->content;