aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/message_parser.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-11-23 22:25:46 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-11-23 22:25:46 +0000
commit5f35bc9bc1c062bdab2d01678c464a41759488bb (patch)
tree462c46a0fa13ea55da4a36a3703cc80e76e53fe7 /phpBB/includes/message_parser.php
parent37edf4148ce11d03c45caafe7fc694b4b063cf38 (diff)
downloadforums-5f35bc9bc1c062bdab2d01678c464a41759488bb.tar
forums-5f35bc9bc1c062bdab2d01678c464a41759488bb.tar.gz
forums-5f35bc9bc1c062bdab2d01678c464a41759488bb.tar.bz2
forums-5f35bc9bc1c062bdab2d01678c464a41759488bb.tar.xz
forums-5f35bc9bc1c062bdab2d01678c464a41759488bb.zip
my attempt to break things...
git-svn-id: file:///svn/phpbb/trunk@4682 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/message_parser.php')
-rw-r--r--phpBB/includes/message_parser.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php
index 83518123b6..07f7a3519d 100644
--- a/phpBB/includes/message_parser.php
+++ b/phpBB/includes/message_parser.php
@@ -752,13 +752,7 @@ class parse_message
unset($this->attachment_data[$index]);
// Reindex Array
- $attachment_data = $this->attachment_data;
- unset($this->attachment_data);
- foreach ($attachment_data as $element)
- {
- $this->attachment_data[] = $element;
- }
- unset($attachment_data);
+ $this->attachment_data = array_values($this->attachment_data);
}
else if ($edit_comment || $add_file || $preview)
{