MDL-19118 DOn't throw an error when course isn't present, use SITEID for profile links
This commit is contained in:
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user