From b22a3491c8e245c372f0d3a590076c0614978ac6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 26 Aug 2007 23:17:33 +0000 Subject: [PATCH] Fix: Error management if function PHP imagecreatefromjpeg does not exists --- htdocs/lib/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 5d35407540d..0b3480e4a2e 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -3003,7 +3003,7 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName='_small', $ } if ($imgfonction) { - if (function_exists($imgfonction)) + if (! function_exists($imgfonction)) { // Fonctions de conversion non presente dans ce PHP return 'Creation de vignette impossible. Ce PHP ne supporte pas les fonctions du module GD '.$imgfonction;