From f9ab363f386579ed88d273bad3771f7c2698a396 Mon Sep 17 00:00:00 2001 From: cy_altern Date: Mon, 20 Jun 2022 20:15:02 +0200 Subject: [PATCH] warning en moins --- bigform_pipelines.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bigform_pipelines.php b/bigform_pipelines.php index 2ff0fd9..4cc3913 100644 --- a/bigform_pipelines.php +++ b/bigform_pipelines.php @@ -26,8 +26,8 @@ if (!defined('_ECRIRE_INC_VERSION')) { * @return Array $flux */ function bigform_post_edition($flux){ - if ( - $flux['args']['table'] === 'spip_documents' + if (isset($flux['args']['table']) + and $flux['args']['table'] === 'spip_documents' and $id_document = intval($flux['args']['id_objet']) and $flux['args']['action'] === 'ajouter_document' and in_array($flux['data']['extension'], ['jpg', 'png', 'webm'])