summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorHenrik Kjölhede <hkjolhede@gmail.com>2013-02-09 23:33:01 +0100
committerHenrik Kjölhede <hkjolhede@gmail.com>2013-02-09 23:33:01 +0100
commitbcf98879cb8e2551e3f9e044da88d81ee7a17139 (patch)
tree23158f5fdeecaf1c051d168940c91a543d4d6ef0 /apps/files_external
parent9e42a36fd854797c3674c047dfe672dad4b726be (diff)
downloadnextcloud-server-bcf98879cb8e2551e3f9e044da88d81ee7a17139.tar.gz
nextcloud-server-bcf98879cb8e2551e3f9e044da88d81ee7a17139.zip
Just a little cleaner in touch
Diffstat (limited to 'apps/files_external')
-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 {