From 22aa84e4c3d182bb708d6c4de5e7cf9daf1342ee Mon Sep 17 00:00:00 2001 From: Luka Stocker <67695434+lukastocker@users.noreply.github.com> Date: Fri, 18 Aug 2023 14:24:54 +0200 Subject: [PATCH] LSO: include check if lso abstract or extro image exists. If not do not execute deletion of file(s). (#37590) (#6234) --- .../Settings/class.ilLearningSequenceFilesystem.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Modules/LearningSequence/classes/Settings/class.ilLearningSequenceFilesystem.php b/Modules/LearningSequence/classes/Settings/class.ilLearningSequenceFilesystem.php index c963338d8ae9..8e5614419da1 100644 --- a/Modules/LearningSequence/classes/Settings/class.ilLearningSequenceFilesystem.php +++ b/Modules/LearningSequence/classes/Settings/class.ilLearningSequenceFilesystem.php @@ -1,7 +1,5 @@ getExtroImage(); $settings = $settings->withExtroImage(); } - $this->deleteFile($delete); + if (!empty($delete)) { + $this->deleteFile($delete); + } return $settings; }