Merge pull request #4208 from turbo124/v5-develop

Fix for HTMLEngine
This commit is contained in:
David Bomba 2020-10-24 18:01:56 +11:00 committed by GitHub
commit a222222c31
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)) { if ($custom_fields && property_exists($custom_fields, $field)) {
$custom_field = $custom_fields->{$field}; $custom_field = $custom_fields->{$field};
$custom_field_parts = explode('|', $custom_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) { switch ($custom_field) {
@ -510,7 +512,7 @@ class HtmlEngine
break; break;
default: default:
return $value; return is_null($value) ? '' : $value;
break; break;
} }
} }