Skip to content
Snippets Groups Projects
Commit 46a18ae1 authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Fix handling of "logOutRoute = false" setting in config.ini.

parent f62308bb
Branches
Tags
No related merge requests found
...@@ -310,7 +310,7 @@ class MyResearchController extends AbstractBase ...@@ -310,7 +310,7 @@ class MyResearchController extends AbstractBase
public function logoutAction() public function logoutAction()
{ {
$config = $this->getConfig(); $config = $this->getConfig();
if (isset($config->Site->logOutRoute)) { if (!empty($config->Site->logOutRoute)) {
$logoutTarget = $this->getServerUrl($config->Site->logOutRoute); $logoutTarget = $this->getServerUrl($config->Site->logOutRoute);
} else { } else {
$logoutTarget = $this->getRequest()->getServer()->get('HTTP_REFERER'); $logoutTarget = $this->getRequest()->getServer()->get('HTTP_REFERER');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment