Fix comparisons in encryption app

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/4790/head
Joas Schilling 9 years ago committed by Morris Jobke
parent 050fa63380
commit 0ebdf871e0
  1. 2
      apps/encryption/lib/Crypto/Crypt.php
  2. 6
      apps/encryption/lib/Crypto/Encryption.php

@ -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…
Cancel
Save