# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/lib/datalib.php
--- moodle/lib/datalib.php Base (1.476)
+++ moodle/lib/datalib.php Locally Modified (Based On 1.476)
@@ -1748,7 +1748,7 @@
                                               WHERE cm.course = :courseid AND
                                                     cm.module = m.id AND
                                                     m.name = :moduletype AND
-                                                    cm.instance = :moduleid")) {
+                                                    cm.instance = :moduleid",$params)) {
 
             foreach ($records as $record) { // there should only be one - use the first one
                 return $record->visible;
