Commit 3427976b authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer Committed by Vincent Petry
Browse files

strict comparison

parent 27bb968f
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment