Treat empty and unset self config value the same
Treat empty and unset self config value the same

--- a/include/controller/ControllerBase.class.php
+++ b/include/controller/ControllerBase.class.php
@@ -555,7 +555,7 @@
 		if ($this->router) {
 			$this->router->SetCleanUrl($this->config->GetValue('cleanurl') ? true : false);
 			$this->router->SetAbbreviate($this->config->GetValue('abbreviateurl') ? true : false);
-			if ($this->config->HasKey('self')) {
+			if ($this->config->GetValue('self')) {
 				$this->router->SetBaseUrl($this->config->GetValue('self'));
 			}
 			$this->tpl->assign('router', $this->router);

comments