]> source.dussan.org Git - nextcloud-server.git/commitdiff
Supress warnings touch can generate 16570/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Fri, 26 Jul 2019 15:26:59 +0000 (17:26 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 26 Jul 2019 15:26:59 +0000 (17:26 +0200)
We already catch the result value. Having the warning being logged
explicitly doesn't help and polutes the log.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/Files/Storage/Local.php

index e3e6ac783d9524cf784cc5f648cbed5a0d477394..e9a9e8e988573ca9e3eae59b62177bf0fe2e0475 100644 (file)
@@ -202,9 +202,9 @@ class Local extends \OC\Files\Storage\Common {
                        return false;
                }
                if (!is_null($mtime)) {
-                       $result = touch($this->getSourcePath($path), $mtime);
+                       $result = @touch($this->getSourcePath($path), $mtime);
                } else {
-                       $result = touch($this->getSourcePath($path));
+                       $result = @touch($this->getSourcePath($path));
                }
                if ($result) {
                        clearstatcache(true, $this->getSourcePath($path));