mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 21:08:53 +00:00
Fixed looping END_TRANSACTION ... oops
git-svn-id: file:///svn/phpbb/trunk@1001 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
ed26632a7f
commit
3d72b78424
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue