diff --git a/lib/weblib.php b/lib/weblib.php index e5d41b017df..6bb5ea2f41d 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1588,12 +1588,14 @@ function helpbutton ($page, $title="", $module="moodle", $image=true, $linktext= if ($image) { $icon = "$CFG->pixpath/help.gif"; if ($linktext) { - $linkobject = "$title\"\""; + $linkobject = "$title\"\""; } else { - $linkobject = "\"$title\""; + $linkobject = "\"$title\""; } } else { - $linkobject = $title; + $linkobject = "$title"; } if ($text) { $url = "/help.php?module=$module&text=".htmlentities(urlencode($text));