From 4f3604e7177ca6c06445bd34d25a51c1aeaf751a Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Fri, 26 Aug 2016 16:31:19 +0200 Subject: [PATCH] [FIX] #83 issue with FTP file with wrong rights. --- bureau/class/m_bro.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bureau/class/m_bro.php b/bureau/class/m_bro.php index 9d970068..071b465d 100644 --- a/bureau/class/m_bro.php +++ b/bureau/class/m_bro.php @@ -1108,6 +1108,10 @@ class m_bro { $err->log("bro", "_delete($file)"); if (is_dir($file)) { $handle = opendir($file); + if (!$handle) { + rmdir($file); // let's try it anyway... + return; // skip unreacheable folders + } while (($filename = readdir($handle)) !== false) { if ($filename != "." && $filename != "..") { $this->_delete($file . "/" . $filename);