aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files.php
diff options
context:
space:
mode:
authorNicolai Ehemann <en@enlightened.de>2014-01-17 14:26:17 +0100
committerNicolai Ehemann <en@enlightened.de>2014-01-18 15:16:17 +0100
commit66aa9b4e27deac3037ac382cc845cd26f05c682f (patch)
tree61c96d2da87bf2fb32bc9640d0cfcdddfd7ccfdb /lib/private/files.php
parent16033c81235e76af2900fdc8fd9340546301d45c (diff)
downloadnextcloud-server-66aa9b4e27deac3037ac382cc845cd26f05c682f.tar.gz
nextcloud-server-66aa9b4e27deac3037ac382cc845cd26f05c682f.zip
lib/files.php: make use of === instead of ==
Diffstat (limited to 'lib/private/files.php')
-rw-r--r--lib/private/files.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/files.php b/lib/private/files.php
index e6c81d58bd2..d4a8112d23b 100644
--- a/lib/private/files.php
+++ b/lib/private/files.php
@@ -51,7 +51,7 @@ class OC_Files {
$xsendfile = true;
}
- if (is_array($files) && count($files) == 1) {
+ if (is_array($files) && count($files) === 1) {
$files = $files[0];
}
@@ -178,7 +178,7 @@ class OC_Files {
if (isset($_SERVER['HTTP_RANGE']) &&
preg_match("/^bytes=([0-9]+)-([0-9]*)$/", $_SERVER['HTTP_RANGE'], $range)) {
$filelength = filesize($filename);
- if ($range[2] == "") {
+ if ($range[2] === "") {
$range[2] = $filelength - 1;
}
header("Content-Range: bytes $range[1]-$range[2]/" . $filelength);
@@ -280,7 +280,7 @@ class OC_Files {
}
//don't allow user to break his config -- broken or malicious size input
- if (intval($size) == 0) {
+ if (intval($size) === 0) {
return false;
}
@@ -302,7 +302,7 @@ class OC_Files {
if ($content !== null) {
$htaccess = $content;
}
- if ($hasReplaced == 0) {
+ if ($hasReplaced === 0) {
$htaccess .= "\n" . $setting;
}
}