Fix comparisons in the files app
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
45e2c415d4
commit
e30287cf81
|
@ -51,7 +51,7 @@ if(isset($_GET['downloadStartSecret'])
|
||||||
setcookie('ocDownloadStarted', $_GET['downloadStartSecret'], time() + 20, '/');
|
setcookie('ocDownloadStarted', $_GET['downloadStartSecret'], time() + 20, '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
$server_params = array( 'head' => \OC::$server->getRequest()->getMethod() == 'HEAD' );
|
$server_params = array( 'head' => \OC::$server->getRequest()->getMethod() === 'HEAD' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Http range requests support
|
* Http range requests support
|
||||||
|
|
|
@ -227,7 +227,7 @@ class Helper {
|
||||||
|
|
||||||
foreach ($filesById as $key => $fileWithTags) {
|
foreach ($filesById as $key => $fileWithTags) {
|
||||||
foreach($fileList as $key2 => $file){
|
foreach($fileList as $key2 => $file){
|
||||||
if( $file[$fileIdentifier] == $key){
|
if( $file[$fileIdentifier] === $key){
|
||||||
$fileList[$key2] = $fileWithTags;
|
$fileList[$key2] = $fileWithTags;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,7 @@ class Admin implements ISettings {
|
||||||
* @return TemplateResponse
|
* @return TemplateResponse
|
||||||
*/
|
*/
|
||||||
public function getForm() {
|
public function getForm() {
|
||||||
$htaccessWorking = (getenv('htaccessWorking') == 'true');
|
$htaccessWorking = (getenv('htaccessWorking') === 'true');
|
||||||
$htaccessWritable = is_writable(\OC::$SERVERROOT.'/.htaccess');
|
$htaccessWritable = is_writable(\OC::$SERVERROOT.'/.htaccess');
|
||||||
$userIniWritable = is_writable(\OC::$SERVERROOT.'/.user.ini');
|
$userIniWritable = is_writable(\OC::$SERVERROOT.'/.user.ini');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue