Skip to content
Snippets Groups Projects
Commit 34d40d30 authored by Sakthi Shanmuga Sundaram M's avatar Sakthi Shanmuga Sundaram M
Browse files

Issue#3379993: Resolving deprecation issue with coalescing operator.

parent 246f16a8
No related branches found
No related tags found
No related merge requests found
......@@ -56,10 +56,7 @@ function template_preprocess_views_views_json_style_simple(&$vars) {
}
else {
$content = $plaintext_output ? strip_tags(html_entity_decode($field->content, ENT_QUOTES)) : $field->content;
if (!empty($content)) {
$content = mb_check_encoding($content, 'UTF-8') ? $content : utf8_encode($content);
}
$content = $content ?? mb_check_encoding($content, 'UTF-8') ? $content : utf8_encode($content);
}
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment