Browse Source

Fix #4850 Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated

pull/4854/head
b_b 8 months ago
parent
commit
df6699e9f9
  1. 2
      syndic/atomrss.php

2
syndic/atomrss.php

@ -360,7 +360,7 @@ function analyser_backend($rss, $url_syndic = '') {
) {
$data['lang'] = trim($match[3]);
} else {
if ($lang = trim(extraire_attribut($item, 'xml:lang'))) {
if ($lang = trim(extraire_attribut($item, 'xml:lang') ?? '')) {
$data['lang'] = $lang;
} else {
$data['lang'] = trim($langue_du_site);

Loading…
Cancel
Save