aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-09-07 16:59:44 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-09-07 16:59:44 +0000
commit3d72b78424e27eb21bd0e315457129a4ac152a0c (patch)
treed1b3fd484590a4fea85f0befe9633f6ed7015aaf /phpBB
parented26632a7facb458ae2ae08eb58cca6cd0cc7a16 (diff)
downloadforums-3d72b78424e27eb21bd0e315457129a4ac152a0c.tar
forums-3d72b78424e27eb21bd0e315457129a4ac152a0c.tar.gz
forums-3d72b78424e27eb21bd0e315457129a4ac152a0c.tar.bz2
forums-3d72b78424e27eb21bd0e315457129a4ac152a0c.tar.xz
forums-3d72b78424e27eb21bd0e315457129a4ac152a0c.zip
Fixed looping END_TRANSACTION ... oops
git-svn-id: file:///svn/phpbb/trunk@1001 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/posting.php4
1 files 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")