diff --git a/module/VuFind/src/VuFind/Controller/MyResearchController.php b/module/VuFind/src/VuFind/Controller/MyResearchController.php index ed5699b92317e1e976e384139f782e3c8a0cfd11..6dfc3abcc0c9c2803312bfbd66ff0fe02e1e633d 100644 --- a/module/VuFind/src/VuFind/Controller/MyResearchController.php +++ b/module/VuFind/src/VuFind/Controller/MyResearchController.php @@ -64,10 +64,10 @@ class MyResearchController extends AbstractBase // Not logged in? Force user to log in: if (!$this->getAuthManager()->isLoggedIn()) { - $this->followup()->store( - array(), - $this->getRequest()->getServer()->get('HTTP_REFERER') - ); + $referer = $this->getRequest()->getServer()->get('HTTP_REFERER'); + if (!empty($referer)) { + $this->followup()->store(array(), $referer); + } return $this->forwardTo('MyResearch', 'Login'); }