Closed (fixed)
Project:
FeedAPI
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2008 at 09:09 UTC
Updated:
24 Oct 2008 at 13:12 UTC
Tracked down the bug to be in the feedapi_get_types() function as it was attempting to evaluate and unset the array by the array element value not the key. Here is the corrected function:
function feedapi_get_types() {
$names = node_get_types('names');
foreach ($names as $key => $type) {
if (!feedapi_enabled_type($key)) {
unset($names[$key]);
}
}
return $names;
}
Comments
Comment #1
aron novakThank you for doing this bug-hunting.
It's fixed in the -dev version, today I'll release a new version of FeedAPI, it will contain this change also.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.