diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index e1795bdaf93..343d379f471 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -3514,7 +3514,10 @@ class core_renderer_ajax extends core_renderer { $e->debuginfo = NULL; $e->reproductionlink = NULL; if (!empty($CFG->debug) and $CFG->debug >= DEBUG_DEVELOPER) { - $e->reproductionlink = $link; + $link = (string) $link; + if ($link) { + $e->reproductionlink = $link; + } if (!empty($debuginfo)) { $e->debuginfo = $debuginfo; } diff --git a/lib/yui/build/moodle-core-notification-exception/moodle-core-notification-exception-debug.js b/lib/yui/build/moodle-core-notification-exception/moodle-core-notification-exception-debug.js index ad7ae33de78..9ca3e81b017 100644 --- a/lib/yui/build/moodle-core-notification-exception/moodle-core-notification-exception-debug.js +++ b/lib/yui/build/moodle-core-notification-exception/moodle-core-notification-exception-debug.js @@ -60,7 +60,7 @@ Y.extend(EXCEPTION, M.core.notification.info, { delay = this.get('hideTimeoutDelay'); this.get(BASE).addClass('moodle-dialogue-exception'); this.setStdModContent(Y.WidgetStdMod.HEADER, - '

' + config.name + '

', Y.WidgetStdMod.REPLACE); + '

' + config.name + '

', Y.WidgetStdMod.REPLACE); content = Y.Node.create('
') .append(Y.Node.create('
'+this.get('message')+'
')) .append(Y.Node.create('