diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 79af3aaaea9..3bf0d05a2da 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -2338,7 +2338,10 @@ EOD; if ($item->hidden) { $link->add_class('dimmed'); } - $link->text = $content.$link->text; // add help icon + if (!empty($content)) { + // Providing there is content we will use that for the link content. + $link->text = $content; + } $content = $this->render($link); } else if ($item->action instanceof moodle_url) { $attributes = array();