some small fixes from dave hall

This commit is contained in:
Lars Kneschke 2003-10-11 13:30:52 +00:00
parent ec9e4e621e
commit d8692a29f7

View File

@ -106,6 +106,26 @@
function redirect_link($url = '',$extravars='')
{
if(@defined('PHPGW_PHPSESSID') &&
@defined('SID'))//add support for non cookie based php4 sessions
{
if(is_array($extravars))
{
list($ignore, $id) =explode('=',SID);
$extravars[PHPGW_PHPSESSID] = $id;
}
else
{
if($extravars)
{
$extravars .= SID;
}
else
{
$extravars = SID;
}
}
}
$this->redirect($this->session->link($url, $extravars));
}