diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php index 82b32bf88f921ebaa1d4d5c20b69bd881f3b3edf..e70922a35339b0ee40eff8cb0fd059607aa26440 100644 --- a/interface/lib/app.inc.php +++ b/interface/lib/app.inc.php @@ -186,7 +186,11 @@ class app { public function tpl_defaults() { $this->tpl->setVar('app_title', $this->_conf['app_title']); - $this->tpl->setVar('app_version', $this->_conf['app_version']); + if(isset($_SESSION['s']['user'])) { + $this->tpl->setVar('app_version', $this->_conf['app_version']); + } else { + $this->tpl->setVar('app_version', ''); + } $this->tpl->setVar('app_link', $this->_conf['app_link']); if(isset($this->_conf['app_logo']) && $this->_conf['app_logo'] != '' && @is_file($this->_conf['app_logo'])){ $this->tpl->setVar('app_logo', '<img src="'.$this->_conf['app_logo'].'">'); @@ -218,4 +222,4 @@ class app { //* possible future = new app($conf); $app = new app(); -?> +?> \ No newline at end of file