Merge branch 'MDL-39607-master' of git://github.com/FMCorz/moodle
[moodle.git] / lib / outputrenderers.php
index 341f317..cf1aaa9 100644 (file)
@@ -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;
             }