if we want a string, don't close the DB and cache

git-svn-id: file:///svn/phpbb/trunk@6500 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-10-14 19:05:51 +00:00
parent 44ba76d075
commit 2cc31fee0e

View file

@ -1470,7 +1470,10 @@ function redirect($url, $return = false)
$user->add_lang('common');
}
garbage_collection();
if (!$return)
{
garbage_collection();
}
// Make sure no &'s are in, this will break the redirect
$url = str_replace('&', '&', $url);