Skip to content

Commit

Permalink
MDL-19118 DOn't throw an error when course isn't present, use SITEID …
Browse files Browse the repository at this point in the history
…for profile links
  • Loading branch information
moodler committed May 3, 2010
1 parent e5ef56d commit fe40925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comment/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function __construct($options) {
} else if (!empty($options->courseid)) {
$this->courseid = $options->courseid;
} else {
print_error('commentsrequirecourseid');
$this->courseid = SITEID;
}

if (!empty($options->pluginname)) {
Expand Down

0 comments on commit fe40925

Please sign in to comment.