warning en moins

This commit is contained in:
cy_altern 2022-06-20 20:15:02 +02:00
parent d0d8d2d1ad
commit f9ab363f38

View file

@ -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'])