From: Philipp Date: Mon, 4 Mar 2019 12:54:51 +0000 (-0500) Subject: Add default value for config.sitename in App::initHead X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a5d86fe7878c9d599ae0b05d698bd853df12caec;p=friendica.git Add default value for config.sitename in App::initHead - Protect $this->page['title'] even more Co-Authored-By: MrPetovan --- diff --git a/src/App.php b/src/App.php index cfb04efcd7..b3eed92a0d 100644 --- a/src/App.php +++ b/src/App.php @@ -576,7 +576,7 @@ class App } // Prepend the sitename to the page title - $this->page['title'] = $this->config->get('config', 'sitename') . ($this->page['title'] ? ' | ' . $this->page['title'] : ''); + $this->page['title'] = $this->config->get('config', 'sitename', '') . (!empty($this->page['title']) ? ' | ' . $this->page['title'] : ''); if (!empty(Core\Renderer::$theme['stylesheet'])) { $stylesheet = Core\Renderer::$theme['stylesheet'];