Fehler behoben
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