diff --git a/lib/weblib.php b/lib/weblib.php
index 415cbff7274..4b708e24817 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -1928,9 +1928,9 @@ function print_heading($text, $align='', $size=2) {
* @param string $icon Image to display if needed
*/
function print_heading_with_help($text, $helppage, $module='moodle', $icon='') {
- echo "'.$icon.stripslashes_safe($text);
helpbutton($helppage, $text, $module);
- echo "
'. $message .'