MDL-19118 DOn't throw an error when course isn't present, use SITEID for profile links

This commit is contained in:
Martin Dougiamas
2010-05-03 16:14:05 +00:00
parent e5ef56d21a
commit fe40925a79
+1 -1
View File
@@ -126,7 +126,7 @@ class comment {
} else if (!empty($options->courseid)) {
$this->courseid = $options->courseid;
} else {
print_error('commentsrequirecourseid');
$this->courseid = SITEID;
}
if (!empty($options->pluginname)) {