fixed dml typo

This commit is contained in:
Petr Skoda
2009-12-28 19:38:00 +00:00
parent c2c04c6976
commit 8c271b2900
+1 -1
View File
@@ -185,7 +185,7 @@ if ($posts = forum_search_posts($searchterms, $searchcourse, $page*$perpage, $pe
}
if ($course->id == SITEID && has_capability('moodle/site:config', $syscontext)) {
$postcoursename = $DB->get_field('course', array('shortname' => 'id'), $forum->course);
$postcoursename = $DB->get_field('course', 'shortname', array('id'=>$forum->course));
$fullsubject = '<a href="'.$CFG->wwwroot.'/course/view.php?id='.$forum->course.'">'.$postcoursename.'</a> -> '. $fullsubject;
}