From 8e0db1071ae314384480dbcf796fbebdd57c4d6b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 1 May 2023 18:49:47 +0200 Subject: [PATCH] Fix warning --- htdocs/core/class/fileupload.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/core/class/fileupload.class.php b/htdocs/core/class/fileupload.class.php index 4dcfb55f781..ff7dfc622b8 100644 --- a/htdocs/core/class/fileupload.class.php +++ b/htdocs/core/class/fileupload.class.php @@ -577,7 +577,10 @@ class FileUpload } } } + // Return result in json format header('Content-type: application/json'); echo json_encode($success); + + return null; } }