From 64bb28b4b4de2c314cfeea01d14f74b34c331d59 Mon Sep 17 00:00:00 2001 From: Ken Fallon Date: Fri, 17 Jan 2025 21:58:55 +0100 Subject: [PATCH] The show processing needs to be refactored #5 --- cms/assets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/assets.php b/cms/assets.php index 91bbaaf..37311e6 100644 --- a/cms/assets.php +++ b/cms/assets.php @@ -100,6 +100,7 @@ function executeGET() { function executePOST() { + global $connection, $allowed_extensions, $allowed_content_type; //Make sure that the content type of the POST request has been set to application/json $contentType = isset($_SERVER["CONTENT_TYPE"]) ? trim($_SERVER["CONTENT_TYPE"]) : ''; @@ -120,7 +121,6 @@ function executePOST() { } foreach($decoded['assets'] as $asset) { - global $connection, $allowed_extensions, $allowed_content_type; // Check episode_id