Redeclaring extra array wipes out values

JaredAM - August 2, 2009 - 22:23
Project:FileField Podcaster
Version:6.x-0.7
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Line 88 redeclares the $extra array and any values previously in the array (pubDate, dc:creator, guid, etc) are wiped out.

Here's a simple patch.

AttachmentSize
ffpc_extraarrayfix.patch502 bytes

#1

JaredAM - August 2, 2009 - 22:48

Also, pubDate and guid are redeclared on lines 113-117. So it might be correct to remove either 113-117 or 39-49.

#2

JaredAM - August 3, 2009 - 03:20

After doing some testing, if line 88 is removed

$extra = array();

The xml that is output has problems. FYI

 
 

Drupal is a registered trademark of Dries Buytaert.