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

xen’s picture

Assigned: Unassigned » xen
Status: Active » Fixed

Fixed in 2.2 (deemed important enough for a quick release).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.