diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2008-06-13 19:39:01 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-06-13 19:39:01 +0000 |
| commit | d22e2697e9655d2fe7df8f183a68181851279f91 (patch) | |
| tree | 28dc19ba68bde8585a86289c9994247d0d88242d /phpBB/posting.php | |
| parent | 31c97676ade8dc18d79f07e749cc38b1186cf7be (diff) | |
| download | forums-d22e2697e9655d2fe7df8f183a68181851279f91.tar forums-d22e2697e9655d2fe7df8f183a68181851279f91.tar.gz forums-d22e2697e9655d2fe7df8f183a68181851279f91.tar.bz2 forums-d22e2697e9655d2fe7df8f183a68181851279f91.tar.xz forums-d22e2697e9655d2fe7df8f183a68181851279f91.zip | |
Fix some instances where we left db connections open (registration -> captcha for example)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8655 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 4769c1f592..1dd2244656 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -114,8 +114,7 @@ switch ($mode) else { upload_popup(); - garbage_collection(); - exit_handler(); + exit; } break; @@ -146,7 +145,7 @@ if (!$post_data) if ($mode == 'popup') { upload_popup($post_data['forum_style']); - exit_handler(); + exit; } $user->setup(array('posting', 'mcp', 'viewtopic'), $post_data['forum_style']); @@ -277,7 +276,7 @@ if ($mode == 'edit' && !$auth->acl_get('m_edit', $forum_id)) if ($mode == 'delete') { handle_post_delete($forum_id, $topic_id, $post_id, $post_data); - exit_handler(); + exit; } // Handle bump mode... @@ -1402,6 +1401,9 @@ function upload_popup($forum_style = 0) ); $template->display('popup'); + + garbage_collection(); + exit_handler(); } /** |
