diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-05-27 18:03:29 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-05-27 18:03:29 +0200 |
commit | c81e34ef899617d4c0280bd3b19d5ef7da31d158 (patch) | |
tree | f871521059dbba44db2135affbc1e45a319b3ccd /apps | |
parent | 5d32e214b7c91d3710c46f522d82104cbad5b837 (diff) | |
download | nextcloud-server-c81e34ef899617d4c0280bd3b19d5ef7da31d158.tar.gz nextcloud-server-c81e34ef899617d4c0280bd3b19d5ef7da31d158.zip |
replace == with ===
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_encryption/ajax/adminrecovery.php | 2 | ||||
-rw-r--r-- | apps/files_encryption/ajax/userrecovery.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_encryption/ajax/adminrecovery.php b/apps/files_encryption/ajax/adminrecovery.php index d532bb62b64..9375e27913a 100644 --- a/apps/files_encryption/ajax/adminrecovery.php +++ b/apps/files_encryption/ajax/adminrecovery.php @@ -21,7 +21,7 @@ $return = false; $recoveryKeyId = OC_Appconfig::getValue('files_encryption', 'recoveryKeyId'); -if (isset($_POST['adminEnableRecovery']) && $_POST['adminEnableRecovery'] == 1) { +if (isset($_POST['adminEnableRecovery']) && $_POST['adminEnableRecovery'] === "1") { $return = \OCA\Encryption\Helper::adminEnableRecovery($recoveryKeyId, $_POST['recoveryPassword']); $action = "enable"; diff --git a/apps/files_encryption/ajax/userrecovery.php b/apps/files_encryption/ajax/userrecovery.php index 4b364121e33..4b971f2afbb 100644 --- a/apps/files_encryption/ajax/userrecovery.php +++ b/apps/files_encryption/ajax/userrecovery.php @@ -15,7 +15,7 @@ use OCA\Encryption; if ( isset($_POST['userEnableRecovery']) - && (0 == $_POST['userEnableRecovery'] || 1 == $_POST['userEnableRecovery']) + && (0 == $_POST['userEnableRecovery'] || "1" === $_POST['userEnableRecovery']) ) { $userId = \OCP\USER::getUser(); @@ -25,7 +25,7 @@ if ( // Save recovery preference to DB $return = $util->setRecoveryForUser($_POST['userEnableRecovery']); - if ($_POST['userEnableRecovery'] == "1") { + if ($_POST['userEnableRecovery'] === "1") { $util->addRecoveryKeys(); } else { $util->removeRecoveryKeys(); |