]> source.dussan.org Git - nextcloud-server.git/commitdiff
strict comparison
authorJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 1 Oct 2014 11:14:08 +0000 (13:14 +0200)
committerVincent Petry <pvince81@owncloud.com>
Wed, 8 Oct 2014 16:49:55 +0000 (18:49 +0200)
lib/private/files/storage/common.php

index b07dc498cdf8e89f08be50abb7b340ea718d77f2..518d3ec400c9fad79a1a1e9c51d82752451d065e 100644 (file)
@@ -54,11 +54,11 @@ abstract class Common implements \OC\Files\Storage\Storage {
        }
 
        public function is_dir($path) {
-               return $this->filetype($path) == 'dir';
+               return $this->filetype($path) === 'dir';
        }
 
        public function is_file($path) {
-               return $this->filetype($path) == 'file';
+               return $this->filetype($path) === 'file';
        }
 
        public function filesize($path) {