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; }