From 7cb40db874aff8faa1b605c8ecfaaa7c356c17ee Mon Sep 17 00:00:00 2001 From: ruan Date: Sun, 21 Feb 2016 06:48:13 +0200 Subject: [PATCH] Handle null title properly --- inc/page.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/page.php b/inc/page.php index 02b82f3..88fac6f 100644 --- a/inc/page.php +++ b/inc/page.php @@ -271,7 +271,11 @@ class Page { function print_title() { $title = $this->title; $name = $this->settings->name; - echo "$title - $name"; + if ($title === null) { + echo "$name"; + } else { + echo "$title - $name"; + } } function print_table_rows($row, $array, $print_headers = true) {