I think this is the function that's messing up. Any idea why it would return with an array?
PHP Code:
function fetch_replaced_session_url($url)
{
// replace the sessionhash in $url with the current one
global $session;
$url = addslashes($url);
$url = fetch_removed_sessionhash($url);
if ($session['sessionurl'] != '')
{
if (strpos($url, '?') !== false)
{
$url .= "&$session[sessionurl]";
}
else
{
$url .= "?$session[sessionurl]";
}
}
return $url;
}