aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 &'s are in, this will break the redirect
$url = str_replace('&', '&', $url);