Handle null title properly

This commit is contained in:
ruan 2016-02-21 06:48:13 +02:00
parent c9bc532c82
commit 7cb40db874

View File

@ -271,7 +271,11 @@ class Page {
function print_title() { function print_title() {
$title = $this->title; $title = $this->title;
$name = $this->settings->name; $name = $this->settings->name;
echo "<title>$title - $name</title>"; if ($title === null) {
echo "<title>$name</title>";
} else {
echo "<title>$title - $name</title>";
}
} }
function print_table_rows($row, $array, $print_headers = true) { function print_table_rows($row, $array, $print_headers = true) {