Commit ec024e5c authored by donutdan4114's avatar donutdan4114 Committed by Joel Muzzerall
Browse files

Issue #2599248 by donutdan4114: array_filter() issue after upgrading to 7.x-1.0-beta10

parent 99ef0fed
......@@ -588,7 +588,7 @@ function field_collection_item_is_empty(FieldCollectionItemEntity $item) {
$is_empty = TRUE;
// Check whether all fields are booleans.
$all_boolean = $instances && !(bool) array_filter('_field_collection_field_is_not_boolean');
$all_boolean = $instances && !(bool) array_filter($instances, '_field_collection_field_is_not_boolean');
foreach ($instances as $instance) {
$field_name = $instance['field_name'];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment