This commit is contained in:
leiyong
2020-02-27 07:59:23 +08:00
parent ae877bbd30
commit 143d47c4ad
+2 -1
View File
@@ -626,7 +626,8 @@ class extensionModel extends model
rsort($dirs); // remove from the lower level directory.
foreach($dirs as $dir)
{
if(!is_writable($appRoot . $dir) or !rmdir($appRoot . $dir)) $removeCommands[] = "rmdir $appRoot$dir";
if(!is_dir($appRoot . $dir)) continue;
if(!rmdir($appRoot . $dir)) $removeCommands[] = "rmdir $appRoot$dir"; // fix bug #2965
}
}