From 39c8b085c47a2b385ded11e5c6b7033be7122e84 Mon Sep 17 00:00:00 2001
From: "marcimat@rezo.net" <>
Date: Tue, 10 Mar 2015 06:27:47 +0000
Subject: [PATCH] Notice PHP en moins (Franck) ; ticket #3401

---
 inc/documents.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/inc/documents.php b/inc/documents.php
index 4d7e5d60..dba833f8 100644
--- a/inc/documents.php
+++ b/inc/documents.php
@@ -150,6 +150,7 @@ function vignette_automatique($img, $doc, $lien, $x=0, $y=0, $align='', $class='
 function image_du_document($document)
 {
 	if ($e = $document['extension']
+	  AND isset($GLOBALS['meta']['formats_graphiques'])
 	  AND (strpos($GLOBALS['meta']['formats_graphiques'], $e) !== false)
 	  AND (!test_espace_prive() OR $GLOBALS['meta']['creer_preview']=='oui')
 	  AND $document['fichier']) {
-- 
GitLab