summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_external/lib/sftp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php
index c6be3f96bab..f3605c3aa2d 100644
--- a/apps/files_external/lib/sftp.php
+++ b/apps/files_external/lib/sftp.php
@@ -239,7 +239,7 @@ class SFTP extends OC\Files\Storage\Common {
public function touch($path, $mtime=null) {
try {
- if ($mtime != null) return false;
+ if (!is_null($mtime)) return false;
if (!$this->file_exists($path)) {
$this->client->put($this->abs_path($path), '');
} else {