aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions_posting.php6
1 files 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;
}