From fe40925a79e68baed4cee957ccb90510f1e2f4f3 Mon Sep 17 00:00:00 2001 From: Martin Dougiamas Date: Mon, 3 May 2010 16:14:05 +0000 Subject: [PATCH] MDL-19118 DOn't throw an error when course isn't present, use SITEID for profile links --- comment/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comment/lib.php b/comment/lib.php index beb9db22c06..8687cfc9570 100644 --- a/comment/lib.php +++ b/comment/lib.php @@ -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)) {