Skip to content

Commit

Permalink
MDL-14967 Bug in DB upgrade for get_coursemodule_from_instance: named…
Browse files Browse the repository at this point in the history
… params were using :$modulename instead of :modulename
  • Loading branch information
nicolasconnault committed Jun 2, 2008
1 parent 2da1196 commit 8a44548
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/datalib.php
Expand Up @@ -1608,9 +1608,9 @@ function get_coursemodule_from_instance($modulename, $instance, $courseid=0) {
FROM {course_modules} cm, {modules} md, {".$modulename."} m
WHERE $courseselect
cm.instance = m.id AND
md.name = :$modulename AND
md.name = :modulename AND
md.id = cm.module AND
m.id = :$instance", $params);
m.id = :instance", $params);

}

Expand Down Expand Up @@ -1849,7 +1849,7 @@ function add_to_log($courseid, $module, $action, $url='', $info='', $cm=0, $user
$url=$tl->substr($url,0,97).'...';
debugging('Warning: logged very long URL',DEBUG_DEVELOPER);
}

if (defined('MDL_PERFDB')) { global $PERF ; $PERF->logwrites++;};

if ($CFG->type = 'oci8po') {
Expand Down

0 comments on commit 8a44548

Please sign in to comment.