From: skodak Date: Mon, 23 Oct 2006 18:31:08 +0000 (+0000) Subject: error message when adding a link in editor MDL-7180 ; merged from MOODLE_17_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6a57abf8f7999bc65b649f3c87f3e39839c8b29c;p=moodle.git error message when adding a link in editor MDL-7180 ; merged from MOODLE_17_STABLE --- 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; } ?>