From 412cf506891e7e35dcf1b35190bc2a05d823bb96 Mon Sep 17 00:00:00 2001 From: David M Date: Tue, 25 Jul 2006 11:58:11 +0000 Subject: [PATCH] oops :P git-svn-id: file:///svn/phpbb/trunk@6210 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_posting.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index d0567f5e76..328677d4a9 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -1687,7 +1687,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u case 'mssql': case 'mssql_odbc': $values = array(); - foreach ($sql_data as $key => $var) + foreach ($sql_data[POSTS_TABLE]['sql'] as $key => $var) { if (is_null($var)) { @@ -1714,7 +1714,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u case 'sqlite': $values = array(); - foreach ($sql_data as $key => $var) + foreach ($sql_data[POSTS_TABLE]['sql'] as $key => $var) { if (is_null($var)) { @@ -1740,7 +1740,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u break; default: - $query = $db->sql_build_array('UPDATE', $sql_data); + $query = $db->sql_build_array('UPDATE', $sql_data[POSTS_TABLE]['sql']); break; }