From 0ebdf871e02653bf7e65bf5bdefaec7f92d3c677 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 10 May 2017 13:58:15 +0200 Subject: [PATCH] Fix comparisons in encryption app Signed-off-by: Joas Schilling --- apps/encryption/lib/Crypto/Crypt.php | 2 +- apps/encryption/lib/Crypto/Encryption.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/encryption/lib/Crypto/Crypt.php b/apps/encryption/lib/Crypto/Crypt.php index 9a9ac27b96..6e1b7387c8 100644 --- a/apps/encryption/lib/Crypto/Crypt.php +++ b/apps/encryption/lib/Crypto/Crypt.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); } diff --git a/apps/encryption/lib/Crypto/Encryption.php b/apps/encryption/lib/Crypto/Encryption.php index 1f8c8a8012..4d20c103a5 100644 --- a/apps/encryption/lib/Crypto/Encryption.php +++ b/apps/encryption/lib/Crypto/Encryption.php @@ -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; }