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 |
Jump to:
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.
| Attachment | Size |
|---|---|
| ffpc_extraarrayfix.patch | 502 bytes |

#1
Also, pubDate and guid are redeclared on lines 113-117. So it might be correct to remove either 113-117 or 39-49.
#2
After doing some testing, if line 88 is removed
$extra = array();The xml that is output has problems. FYI