diff --git a/plugins/restful/RestfulEntityBase.php b/plugins/restful/RestfulEntityBase.php index 212697a5..700f8257 100644 --- a/plugins/restful/RestfulEntityBase.php +++ b/plugins/restful/RestfulEntityBase.php @@ -938,6 +938,10 @@ protected function propertyValuesPreprocessText($property_name, $value, $field_i ); } + // In case the value is empty. + if (empty($value)) { + $return = []; + } // Multiple values. foreach ($value as $delta => $single_value) { if (!$instance['settings']['text_processing']) {