From 2cc31fee0e3e868730d06348203b36eee95d61d0 Mon Sep 17 00:00:00 2001 From: David M Date: Sat, 14 Oct 2006 19:05:51 +0000 Subject: [PATCH] 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 --- phpBB/includes/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index ccc40d5684..40225a363b 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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);