diff options
author | Henrik Kjölhede <hkjolhede@gmail.com> | 2013-02-09 23:33:01 +0100 |
---|---|---|
committer | Henrik Kjölhede <hkjolhede@gmail.com> | 2013-02-09 23:33:01 +0100 |
commit | bcf98879cb8e2551e3f9e044da88d81ee7a17139 (patch) | |
tree | 23158f5fdeecaf1c051d168940c91a543d4d6ef0 /apps/files_external | |
parent | 9e42a36fd854797c3674c047dfe672dad4b726be (diff) | |
download | nextcloud-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.php | 2 |
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 { |