Merge pull request #4209 from turbo124/v5-stable

Fix for custom values
This commit is contained in:
David Bomba 2020-10-24 18:02:05 +11:00 committed by GitHub
commit 29af218a01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -501,7 +501,9 @@ class HtmlEngine
if ($custom_fields && property_exists($custom_fields, $field)) {
$custom_field = $custom_fields->{$field};
$custom_field_parts = explode('|', $custom_field);
$custom_field = $custom_field_parts[1];
if(count($custom_field_parts) >= 2)
$custom_field = $custom_field_parts[1];
}
switch ($custom_field) {
@ -510,7 +512,7 @@ class HtmlEngine
break;
default:
return $value;
return is_null($value) ? '' : $value;
break;
}
}