diff --git a/phpBB/posting.php b/phpBB/posting.php index 418b2ea90c..9361a2292b 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -611,7 +611,7 @@ if ($submit || $preview || $refresh) if ($poll_delete && $mode == 'edit' && sizeof($post_data['poll_options']) && ((!$post_data['poll_last_vote'] && $post_data['poster_id'] == $user->data['user_id'] && $auth->acl_get('f_delete', $forum_id)) || $auth->acl_get('m_delete', $forum_id))) { - if ($submit && check_form_key('posting')) + if ($submit && check_form_key('posting')) { $sql = 'DELETE FROM ' . POLL_OPTIONS_TABLE . " WHERE topic_id = $topic_id";