Merge branch 'MDL-49244-master' of git://github.com/jleyva/moodle
[moodle.git] / course / externallib.php
index c43f1cd..e24d8c5 100644 (file)
@@ -1552,7 +1552,7 @@ class core_course_external extends external_api {
                     }
 
                     if (isset($value)) {
-                        $conditions[$key] = $crit['value'];
+                        $conditions[$key] = $value;
                         $wheres[] = $key . " = :" . $key;
                     }
                 }