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);