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 427a016 commit dcf004aCopy full SHA for dcf004a
lib/private/Files/Storage/Wrapper/Encryption.php
@@ -671,6 +671,8 @@ private function copyBetweenStorage(
671
}
672
673
} else {
674
+ $source = false;
675
+ $target = false;
676
try {
677
$source = $sourceStorage->fopen($sourceInternalPath, 'r');
678
$target = $this->fopen($targetInternalPath, 'w');
@@ -680,10 +682,10 @@ private function copyBetweenStorage(
680
682
[, $result] = \OC_Helper::streamCopy($source, $target);
681
683
684
} finally {
- if (isset($source) && $source !== false) {
685
+ if ($source !== false) {
686
fclose($source);
687
- if (isset($target) && $target !== false) {
688
+ if ($target !== false) {
689
fclose($target);
690
691
0 commit comments