mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 00:42:43 +00:00
Handle null title properly
This commit is contained in:
parent
c9bc532c82
commit
7cb40db874
@ -271,8 +271,12 @@ class Page {
|
|||||||
function print_title() {
|
function print_title() {
|
||||||
$title = $this->title;
|
$title = $this->title;
|
||||||
$name = $this->settings->name;
|
$name = $this->settings->name;
|
||||||
|
if ($title === null) {
|
||||||
|
echo "<title>$name</title>";
|
||||||
|
} else {
|
||||||
echo "<title>$title - $name</title>";
|
echo "<title>$title - $name</title>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function print_table_rows($row, $array, $print_headers = true) {
|
function print_table_rows($row, $array, $print_headers = true) {
|
||||||
if ($print_headers && !$this->table_headers_printed) {
|
if ($print_headers && !$this->table_headers_printed) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user