Merge branch '55-fehlerhaftes-loschen-von-ubungsblattern' into 'dev'
Resolve "Fehlerhaftes Löschen von Übungsblättern" Closes #55 See merge request eb2342s/swe-b1-a!22
This commit was merged in pull request #82.
This commit is contained in:
@@ -347,8 +347,8 @@ class TopicData
|
||||
$this->files = array_diff($this->files, $nonexistentEntries);
|
||||
|
||||
foreach (Util::getFilesFromDirectory(Config::getTopicDirectory($this->subjectId, $this->id) . "downloads/") as $file) {
|
||||
if(!array_search($file, $this->files) === false) {
|
||||
Util::delete(Config::getTopicDirectory($this->subjectId, $this->id) . "downloads/$file");
|
||||
if(!array_search($file, $this->files)) {
|
||||
$this->deleteDownload($file);
|
||||
$changed = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user