diff --git a/fivestar.module b/fivestar.module index 3ed5c41..8d7f8d1 100644 --- a/fivestar.module +++ b/fivestar.module @@ -1052,6 +1052,10 @@ function fivestar_fivestar_field_content_type_render($subtype, $conf, $panel_arg $all_values = field_get_items($entity_type, $entity, $field_name, $language); + if (!$all_values) { + $all_values = array(); + } + // Reverse values. if (isset($conf['delta_reversed']) && $conf['delta_reversed']) { $all_values = array_reverse($all_values, TRUE);