We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a32e86 commit e8492d6Copy full SHA for e8492d6
1 file changed
class/Common/FilesManagement.php
@@ -103,12 +103,9 @@ public static function deleteDirectory($src)
103
if (!$success = self::deleteDirectory($fileInfo->getRealPath())) {
104
break;
105
}
106
- } else {
107
- // delete the file
108
- if (!($success = unlink($fileInfo->getRealPath()))) {
109
- break;
+ } elseif (!($success = unlink($fileInfo->getRealPath()))) {
+ break; // delete the file
110
111
- }
112
113
// now delete this (sub)directory if all the files are gone
114
if ($success) {
0 commit comments