Deprecated en PHP 8.2

Deprecated: file_exists(): Passing null to parameter #1 (closed) ($filename) of type string is deprecated in oembed/oembed_fonctions.php on line 168

Il faudrait au choix, typer l'argument img de la fonction oembed_safe_thumbnail(), ou ajouter un test sur $img cf :

diff --git a/oembed_fonctions.php b/oembed_fonctions.php
index 3f10775..7137698 100644
--- a/oembed_fonctions.php
+++ b/oembed_fonctions.php
@@ -165,7 +165,7 @@ function oembed_traiter_ressource($rac) {
  */
 function oembed_safe_thumbnail($img) {
 
-	if (!tester_url_absolue($img) and file_exists($img)) {
+	if ($img and !tester_url_absolue($img) and file_exists($img)) {
 		if (!function_exists('image_filtrer')) {
 			include_spip('inc/filtres');
 		}