Fix comparisons in encryption app
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
050fa63380
commit
0ebdf871e0
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue