mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Handle null title properly
This commit is contained in:
parent
c9bc532c82
commit
7cb40db874
@ -271,7 +271,11 @@ class Page {
|
||||
function print_title() {
|
||||
$title = $this->title;
|
||||
$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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user