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