From 888128fbeea4a7445f79b1a3b413bca27c815f31 Mon Sep 17 00:00:00 2001 From: qualitus-dahme Date: Wed, 29 Jan 2025 10:13:08 +0100 Subject: [PATCH] 0043656: SCORM-Player is flooding the logs Intercept json_decode returning null, causing log messages. https://mantis.ilias.de/view.php?id=43656 --- components/ILIAS/Scorm2004/classes/class.ilSCORM13PlayerGUI.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/ILIAS/Scorm2004/classes/class.ilSCORM13PlayerGUI.php b/components/ILIAS/Scorm2004/classes/class.ilSCORM13PlayerGUI.php index fc8d0bf4d342..b0497fbe3623 100755 --- a/components/ILIAS/Scorm2004/classes/class.ilSCORM13PlayerGUI.php +++ b/components/ILIAS/Scorm2004/classes/class.ilSCORM13PlayerGUI.php @@ -892,6 +892,8 @@ public function writeSharedData(int $sco_node_id): void $ilUser = $DIC->user(); $g_data = json_decode(file_get_contents('php://input')); + if ($g_data == null) return; + //Step 1: Get the writeable stores for this SCO that already have values $query = 'SELECT dm.target_id, sd.store ' . 'FROM cp_datamap dm '