From e4576482d5765ee4ea88485d901051ea926a1fc3 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 21 Sep 2003 16:35:49 +0000 Subject: [PATCH] Robustness on an optional variable --- lib/weblib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 02f0873cb3..f0258fb508 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -788,8 +788,9 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta= } } echo "xml_doctype_extra) + if (!empty($CFG->xml_doctype_extra)) { echo " plus $CFG->xml_doctype_extra"; + } echo "//" . strtoupper($currentlanguage) . "\" \"$CFG->xml_dtd\">\n"; $direction = " xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"$currentlanguage\" $direction"; } -- 2.39.5