removed forward to just the index page

This commit is contained in:
Ralf Becker 2004-04-19 06:24:53 +00:00
parent 12618eace7
commit 97ee9a3c0d

View File

@ -22,7 +22,8 @@
if(!$GLOBALS['sessionid'])
{
Header('Location: login.php'.
(isset($_SERVER['QUERY_STRING']) ? '?phpgw_forward='.urlencode('/index.php?'.$_SERVER['QUERY_STRING']):''));
(isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING']) ?
'?phpgw_forward='.urlencode('/index.php?'.$_SERVER['QUERY_STRING']):''));
exit;
}