We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8ee398 commit afa8549Copy full SHA for afa8549
lib/private/Files/Storage/Wrapper/Encryption.php
@@ -813,6 +813,8 @@ private function copyBetweenStorage(
813
}
814
815
} else {
816
+ $source = false;
817
+ $target = false;
818
try {
819
$source = $sourceStorage->fopen($sourceInternalPath, 'r');
820
$target = $this->fopen($targetInternalPath, 'w');
@@ -822,10 +824,10 @@ private function copyBetweenStorage(
822
824
[, $result] = \OC_Helper::streamCopy($source, $target);
823
825
826
} finally {
- if (isset($source) && $source !== false) {
827
+ if ($source !== false) {
828
fclose($source);
829
- if (isset($target) && $target !== false) {
830
+ if ($target !== false) {
831
fclose($target);
832
833
0 commit comments