From 46a18ae1eceb74895d19e3597cd97ef47a4a7daf Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Fri, 21 Sep 2018 15:29:38 +0300 Subject: [PATCH] Fix handling of "logOutRoute = false" setting in config.ini. --- module/VuFind/src/VuFind/Controller/MyResearchController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/Controller/MyResearchController.php b/module/VuFind/src/VuFind/Controller/MyResearchController.php index 8b0b80e89c4..f0f33167189 100644 --- a/module/VuFind/src/VuFind/Controller/MyResearchController.php +++ b/module/VuFind/src/VuFind/Controller/MyResearchController.php @@ -310,7 +310,7 @@ class MyResearchController extends AbstractBase public function logoutAction() { $config = $this->getConfig(); - if (isset($config->Site->logOutRoute)) { + if (!empty($config->Site->logOutRoute)) { $logoutTarget = $this->getServerUrl($config->Site->logOutRoute); } else { $logoutTarget = $this->getRequest()->getServer()->get('HTTP_REFERER'); -- GitLab