From 6a57abf8f7999bc65b649f3c87f3e39839c8b29c Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 23 Oct 2006 18:31:08 +0000 Subject: [PATCH] error message when adding a link in editor MDL-7180 ; merged from MOODLE_17_STABLE --- lib/editor/htmlarea/popups/link_std.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/editor/htmlarea/popups/link_std.php b/lib/editor/htmlarea/popups/link_std.php index eb8080ee8d..ea1d698a28 100644 --- a/lib/editor/htmlarea/popups/link_std.php +++ b/lib/editor/htmlarea/popups/link_std.php @@ -4,7 +4,8 @@ $id = required_param('id', PARAM_INT); if (!$course = get_record("course", "id", $id)) { - $course->fullname = ""; // Just to keep display happy, though browsing may fail + $course = get_site(); + $id = SITEID; } ?>