- assigned_to: nobody --> goddess_skuld
I found yesterday confusing for-loops in the GetPart() function in the file functions.php, near line 389:
-------------------------8<-------------------------
case 1:
$mime_type = 'multipart';
for ($i = 0; $i < count($this_part->parts); $i++)
{
if ($part_no != '')
$part_no = $part_no . '.';
for ($i = 0; $i < count($this_part->parts); $i++)
{
// if it's an alternative, we skip the text part to only keep the HTML part
if ($this_part->subtype == 'ALTERNATIVE')// && $read == true)
GetPart($attach_tab, $this_part->parts[++$i], $part_no . ($i + 1), $display_rfc822);
else
GetPart($attach_tab, $this_part->parts[$i], $part_no . ($i + 1), $display_rfc822);
}
}
break;
------------------------->8-------------------------
A for-loop with $i inside a for-loop with $i looks really buggy! ;)
Greetings,
Tim