diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-12-05 13:45:16 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-01-06 13:52:11 +0100 |
commit | 7a6a16e3a52128179a4f518958f22e773dd94084 (patch) | |
tree | 64afc20169161201a584aacfc4421c89fc96cffb /phpBB/includes/functions_posting.php | |
parent | 915a141fc2c450035be39b53b870fd841aa224f2 (diff) | |
download | forums-7a6a16e3a52128179a4f518958f22e773dd94084.tar forums-7a6a16e3a52128179a4f518958f22e773dd94084.tar.gz forums-7a6a16e3a52128179a4f518958f22e773dd94084.tar.bz2 forums-7a6a16e3a52128179a4f518958f22e773dd94084.tar.xz forums-7a6a16e3a52128179a4f518958f22e773dd94084.zip |
[ticket/13454] Remove unused variables
This is part 5 and there is more to come.
PHPBB3-13454
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 3addf0ddb4..22a98411ad 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -959,11 +959,9 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id $db->sql_freeresult($result); // Grab extensions - $extensions = $attachments = array(); + $attachments = array(); if ($has_attachments && $auth->acl_get('u_download') && $auth->acl_get('f_download', $forum_id)) { - $extensions = $cache->obtain_attach_extensions($forum_id); - // Get attachments... $sql = 'SELECT * FROM ' . ATTACHMENTS_TABLE . ' @@ -1101,7 +1099,7 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id */ function delete_post($forum_id, $topic_id, $post_id, &$data, $is_soft = false, $softdelete_reason = '') { - global $db, $user, $auth, $phpbb_container; + global $db, $user, $phpbb_container; global $config, $phpEx, $phpbb_root_path; // Specify our post mode @@ -1190,7 +1188,6 @@ function delete_post($forum_id, $topic_id, $post_id, &$data, $is_soft = false, $ if ($is_soft) { - $topic_row = array(); $phpbb_content_visibility->set_topic_visibility(ITEM_DELETED, $topic_id, $forum_id, $user->data['user_id'], time(), $softdelete_reason); } else @@ -1589,7 +1586,6 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll_ary, &$data break; } - $topic_row = array(); // And the topic ladies and gentlemen switch ($post_mode) |