diff --git a/libraries/joomla/filesystem/file.php b/libraries/joomla/filesystem/file.php index 06d8ec5575376..6bc0d5bcef73f 100644 --- a/libraries/joomla/filesystem/file.php +++ b/libraries/joomla/filesystem/file.php @@ -186,6 +186,11 @@ public static function delete($file) foreach ($files as $file) { $file = JPath::clean($file); + + if (!is_file($file)) + { + continue; + } // Try making the file writable first. If it's read-only, it can't be deleted // on Windows, even if the parent folder is writable