Skip to content
Snippets Groups Projects

Issue #3379993: Calling mb_check_encoding() without argument is deprecated

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -56,7 +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;
$content = mb_check_encoding($content, 'UTF-8') ? $content : utf8_encode($content);
$content = $content ?? mb_check_encoding($content, 'UTF-8') ? $content : utf8_encode($content);
}
}
else {
Loading