diff options
author | Christian Weber | 2007-01-23 22:27:53 +0000 |
---|---|---|
committer | Christian Weber | 2007-01-23 22:27:53 +0000 |
commit | 70a8d4b8041833696ab8c8fdc57429782ba2485f (patch) | |
tree | c6b40e646b0c8140679a16a4124fe0b79828f25a /html_page.class | |
parent | 45f246dd537bdca3cdebb6b5b4805b0c67b8d338 (diff) | |
download | itools-70a8d4b8041833696ab8c8fdc57429782ba2485f.tar.gz itools-70a8d4b8041833696ab8c8fdc57429782ba2485f.tar.bz2 itools-70a8d4b8041833696ab8c8fdc57429782ba2485f.zip |
don't omit <title> tag if $title === '' (validator)
Diffstat (limited to 'html_page.class')
-rw-r--r-- | html_page.class | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/html_page.class b/html_page.class index 88191d9..1121017 100644 --- a/html_page.class +++ b/html_page.class @@ -149,7 +149,8 @@ function head() if (!$GLOBALS['SENT_PREAMBLE']) /* RELOAD_MAGIC already sent <html><head> */ echo $this->doctype, "\n<html$lang>\n<head>\n"; - if ($this->title) + # Generate title tag. If empty string, output <title></title> (html-required) + if (isset($this->title)) echo '<title>'.$this->title."</title>\n"; echo $this->headers; |