Closed (fixed)
Project:
Collection
Version:
6.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Aug 2009 at 14:43 UTC
Updated:
4 Sep 2009 at 07:00 UTC
Code in collection_get_collections_by_node() that calls collection_types() assumes collection_types() returns an array. This is false if no content type has been marked as a "collection type". This will produce a warning/error in this case. On possible solution is to change the return in collection_types() to
return (empty($collection_types) ? array() : $collection_types);
Comments
Comment #1
xen commentedFixed in 2.2 (deemed important enough for a quick release).