Browse Source

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

master v1.1.4
RealET 6 months ago
parent
commit
7f0330cc04
  1. 2
      paquet.xml
  2. 2
      select2_pipelines.php

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="select2"
categorie="edition"
version="1.1.3"
version="1.1.4"
etat="stable"
compatibilite="[3.2.0;4.1.*]"
logo="prive/themes/spip/images/select2-64.png"

2
select2_pipelines.php

@ -51,7 +51,7 @@ function select2_header_prive($flux) {
include_spip('inc/config');
$flux .= '<script type="text/javascript">/* <![CDATA[ */
var select2 = select2 || {};
select2.selector = "' . trim(lire_config('select2/selecteur_commun')) . '";
select2.selector = "' . trim((lire_config('select2/selecteur_commun') !== null) ? lire_config('select2/selecteur_commun') : '') . '";
/* ]]> */</script>'."\n";
return $flux;
}

Loading…
Cancel
Save