]> source.dussan.org Git - nextcloud-server.git/commitdiff
Just a little cleaner in touch
authorHenrik Kjölhede <hkjolhede@gmail.com>
Sat, 9 Feb 2013 22:33:01 +0000 (23:33 +0100)
committerHenrik Kjölhede <hkjolhede@gmail.com>
Sat, 9 Feb 2013 22:33:01 +0000 (23:33 +0100)
apps/files_external/lib/sftp.php

index c6be3f96bab1e75e5c4290dc1733e76e86fb0015..f3605c3aa2d61cfa3c5f06955478607fc2e67d7f 100644 (file)
@@ -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 {