mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-28 04:20:32 +02:00
Ok, here comes a big one. Poor updater. Also requires testing.
#i91 #i92 #i93 #i94 #i95 #i96 git-svn-id: file:///svn/phpbb/trunk@8120 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1930,6 +1930,9 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
||||
}
|
||||
|
||||
$sql_insert_ary = array();
|
||||
$sql_delete_array = array();
|
||||
|
||||
print_r($cur_poll_options);
|
||||
for ($i = 0, $size = sizeof($poll['poll_options']); $i < $size; $i++)
|
||||
{
|
||||
if (strlen(trim($poll['poll_options'][$i])))
|
||||
@@ -1952,6 +1955,10 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
}
|
||||
else if (!empty($cur_poll_options[$i]))
|
||||
{
|
||||
$sql_delete_array[] = $cur_poll_options[$i]['poll_option_id'];
|
||||
}
|
||||
}
|
||||
|
||||
$db->sql_multi_insert(POLL_OPTIONS_TABLE, $sql_insert_ary);
|
||||
|
Reference in New Issue
Block a user