From 69c84c86fdd675e93bb04b24b5d48091ecf97687 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 10 Oct 2024 08:42:47 +0200 Subject: [PATCH] check if session exists --- views/bootstrap/class.Bootstrap.php | 8 ++++---- views/bootstrap4/class.Bootstrap4.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index c8e60973c..81ede0ba3 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -100,7 +100,7 @@ class SeedDMS_Theme_Style extends SeedDMS_View_Common { $this->callHook('startPage'); echo "\n"; echo "params['session'] && ($slang = $this->params['session']->getLanguage())) { + if(!empty($this->params['session']) && ($slang = $this->params['session']->getLanguage())) { echo str_replace('_', '-', $slang); } else { echo str_replace('_', '-', $this->params['settings']->_language); @@ -113,7 +113,7 @@ class SeedDMS_Theme_Style extends SeedDMS_View_Common { elseif($this->baseurl) echo ''."\n"; $sitename = trim(strip_tags($this->params['sitename'])); - if($this->params['session']) + if(!empty($this->params['session'])) echo ''."\n"; echo ''."\n"; echo ''."\n"; @@ -147,7 +147,7 @@ class SeedDMS_Theme_Style extends SeedDMS_View_Common { echo ''."\n"; echo ''."\n"; } - if($this->params['session'] && $this->params['session']->getSu()) { + if(!empty($this->params['session']) && $this->params['session']->getSu()) { ?>