aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-10-14 19:05:51 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-10-14 19:05:51 +0000
commit2cc31fee0e3e868730d06348203b36eee95d61d0 (patch)
tree823d657a2ecfc7a9f5dd8cb4bad8fe733560d534
parent44ba76d075a6ebf985c147a9ff50d76dcd8ebd4e (diff)
downloadforums-2cc31fee0e3e868730d06348203b36eee95d61d0.tar
forums-2cc31fee0e3e868730d06348203b36eee95d61d0.tar.gz
forums-2cc31fee0e3e868730d06348203b36eee95d61d0.tar.bz2
forums-2cc31fee0e3e868730d06348203b36eee95d61d0.tar.xz
forums-2cc31fee0e3e868730d06348203b36eee95d61d0.zip
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
-rw-r--r--phpBB/includes/functions.php5
1 files changed, 4 insertions, 1 deletions
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 &amp;'s are in, this will break the redirect
$url = str_replace('&amp;', '&', $url);