summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/Common.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-03 11:03:17 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-12-29 09:07:36 +0100
commit73c7d0dc8156703341733b9c39c69d05263173da (patch)
treeb960b9acb15d29aa5dded5aaedbe07eda651ecc3 /lib/private/Files/Storage/Common.php
parent083f3d23737b99fafec87c64df99e9c09cde71c7 (diff)
downloadnextcloud-server-73c7d0dc8156703341733b9c39c69d05263173da.tar.gz
nextcloud-server-73c7d0dc8156703341733b9c39c69d05263173da.zip
Bump icewind/streams from 0.7.1 to 0.7.2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Files/Storage/Common.php')
-rw-r--r--lib/private/Files/Storage/Common.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php
index 6a530877f43..bddb1f4a294 100644
--- a/lib/private/Files/Storage/Common.php
+++ b/lib/private/Files/Storage/Common.php
@@ -630,8 +630,9 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage {
}
}
- if ($result and $preserveMtime) {
- $this->touch($targetInternalPath, $sourceStorage->filemtime($sourceInternalPath));
+ if ($result && $preserveMtime) {
+ $mtime = $sourceStorage->filemtime($sourceInternalPath);
+ $this->touch($targetInternalPath, is_int($mtime) ? $mtime : null);
}
if (!$result) {