Fix comparisons in encryption app

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-05-10 13:58:15 +02:00 committed by Morris Jobke
parent 050fa63380
commit 0ebdf871e0
2 changed files with 4 additions and 4 deletions

View File

@ -605,7 +605,7 @@ class Crypt {
$element = array_shift($exploded);
while ($element != self::HEADER_END) {
while ($element !== self::HEADER_END) {
$result[$element] = array_shift($exploded);
$element = array_shift($exploded);
}

View File

@ -449,13 +449,13 @@ class Encryption implements IEncryptionModule {
return false;
}
if ($parts[2] == 'files') {
if ($parts[2] === 'files') {
return true;
}
if ($parts[2] == 'files_versions') {
if ($parts[2] === 'files_versions') {
return true;
}
if ($parts[2] == 'files_trashbin') {
if ($parts[2] === 'files_trashbin') {
return true;
}