From 3d72b78424e27eb21bd0e315457129a4ac152a0c Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Fri, 7 Sep 2001 16:59:44 +0000 Subject: [PATCH] Fixed looping END_TRANSACTION ... oops git-svn-id: file:///svn/phpbb/trunk@1001 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/posting.php b/phpBB/posting.php index 20c23632b1..04d99cd3fe 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1252,7 +1252,7 @@ if( ( $submit || $confirm ) && !$error ) $sql = "INSERT INTO " . VOTE_RESULTS_TABLE . " (vote_id, vote_option_id, vote_option_text, vote_result) VALUES ($vote_id, $poll_option_id, '$option_text', $vote_result)"; - if( !$result = $db->sql_query($sql, END_TRANSACTION) ) + if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't insert new poll options", "", __LINE__, __FILE__, $sql); } @@ -1286,7 +1286,7 @@ if( ( $submit || $confirm ) && !$error ) { $sql = "INSERT INTO " . VOTE_RESULTS_TABLE . " (vote_id, vote_option_id, vote_option_text, vote_result) VALUES ($new_vote_id, $poll_option_id, '$option_text', 0)"; - if( !$result = $db->sql_query($sql, END_TRANSACTION) ) + if( !$result = $db->sql_query($sql) ) { // Rollback ... if(SQL_LAYER == "mysql")