diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2007-09-28 11:34:51 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2007-09-28 11:34:51 +0000 |
commit | fe6021c0a31a24105c135085398b38bce3be2914 (patch) | |
tree | cb6822d736fd0f2fde4a6a717855d801db4bcccc /phpBB/includes/functions_posting.php | |
parent | bc80703c13d20859d0f22751ff05e9426c5ee262 (diff) | |
download | forums-fe6021c0a31a24105c135085398b38bce3be2914.tar forums-fe6021c0a31a24105c135085398b38bce3be2914.tar.gz forums-fe6021c0a31a24105c135085398b38bce3be2914.tar.bz2 forums-fe6021c0a31a24105c135085398b38bce3be2914.tar.xz forums-fe6021c0a31a24105c135085398b38bce3be2914.zip |
#14566
git-svn-id: file:///svn/phpbb/trunk@8115 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 6663acb5e2..a3030029c5 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -1932,7 +1932,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u $sql_insert_ary = array(); for ($i = 0, $size = sizeof($poll['poll_options']); $i < $size; $i++) { - if (trim($poll['poll_options'][$i])) + if (strlen(trim($poll['poll_options'][$i]))) { if (empty($cur_poll_options[$i])) { @@ -1959,7 +1959,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u if (sizeof($poll['poll_options']) < sizeof($cur_poll_options)) { $sql = 'DELETE FROM ' . POLL_OPTIONS_TABLE . ' - WHERE poll_option_id >= ' . sizeof($poll['poll_options']) . ' + WHERE poll_option_id > ' . sizeof($poll['poll_options']) . ' AND topic_id = ' . $data['topic_id']; $db->sql_query($sql); } |