diff --git a/inc-calcul-outils.php3 b/inc-calcul-outils.php3 index cbbccea86e8b3e1b86724e67d13d1098f4fabba2..fcecd245ece0bc0bd5ffc3e2783a6b03105787ea 100644 --- a/inc-calcul-outils.php3 +++ b/inc-calcul-outils.php3 @@ -299,7 +299,8 @@ function calcule_logo_document($id_document, $doubdoc, &$doublons, $flag_fichier // Pas de vignette, mais un fichier image -- creer la vignette if (strstr($GLOBALS['meta']['formats_graphiques'], $extension)) { - if ($img = copie_locale($fichier) + include_ecrire('inc_distant.php'); + if ($img = copie_locale($fichier) AND @file_exists($img)) { if (!$x AND !$y) { $logo = reduire_image($img);