diff --git a/site/helpers/tjfields.php b/site/helpers/tjfields.php index 453294a8..aa22b102 100644 --- a/site/helpers/tjfields.php +++ b/site/helpers/tjfields.php @@ -309,7 +309,10 @@ public function saveFieldsValue($data) } elseif (is_array($fieldValue)) { - $fieldValue = explode(",", $fieldValue[0]); + if (strpos(',', $fieldValue[0])) + { + $fieldValue = explode(",", $fieldValue[0]); + } $this->saveMultiValuedFieldData($fieldValue, $field->client, $data['content_id'], $field->id, $fieldStoredValues); }