Commit ff23b815 authored by Bert Balcaen's avatar Bert Balcaen
Browse files

Setting all empty vals to 'null'.

parent 09322682
......@@ -21,10 +21,10 @@ class SolrEngine extends Engine
$searchableArray = $model->toSearchableArray();
foreach ($searchableArray as $key => $value) {
if (empty($value)) {
if (is_string($value)) {
$value = 'NOT_SET';
} else if (is_array($value)) {
$value = ['NOT_SET'];
if (is_array($value)) {
$value = ['null'];
} else {
$value = 'null';
}
$searchableArray[$key] = $value;
}
......
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