Index: branches/5.1.x/core/units/helpers/file_helper.php =================================================================== diff -u -N -r14194 -r14195 --- branches/5.1.x/core/units/helpers/file_helper.php (.../file_helper.php) (revision 14194) +++ branches/5.1.x/core/units/helpers/file_helper.php (.../file_helper.php) (revision 14195) @@ -1,6 +1,6 @@ CheckFolder($destination); - if (!$result) { - // failed to create target directory + if (!$result || !is_resource($dir)) { + // failed to create target directory OR failed to open source directory return false; } @@ -344,8 +344,8 @@ $dir = opendir($source); $result = $this->CheckFolder($destination); - if (!$result) { - // failed to create target directory + if (!$result || !is_resource($dir)) { + // failed to create target directory OR failed to open source directory return false; }