diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-05-28 10:49:54 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-05-28 10:51:12 +0200 |
commit | 3a76c22372654bacb5c33a927779be06baca616e (patch) | |
tree | 7104cc295ec8a56a3d9c2b8de32622e5ef9af0aa /apps/files_encryption/ajax | |
parent | e1e1c589696298bf65749f704f7d852d9d924883 (diff) | |
download | nextcloud-server-3a76c22372654bacb5c33a927779be06baca616e.tar.gz nextcloud-server-3a76c22372654bacb5c33a927779be06baca616e.zip |
$_POST["adminEnableRecovery"] is a string
Diffstat (limited to 'apps/files_encryption/ajax')
-rw-r--r-- | apps/files_encryption/ajax/adminrecovery.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/ajax/adminrecovery.php b/apps/files_encryption/ajax/adminrecovery.php index 4f3ac7fa173..eb8bbfe43a2 100644 --- a/apps/files_encryption/ajax/adminrecovery.php +++ b/apps/files_encryption/ajax/adminrecovery.php @@ -29,7 +29,7 @@ if (isset($_POST['adminEnableRecovery']) && $_POST['adminEnableRecovery'] === "1 // Disable recoveryAdmin } elseif ( isset($_POST['adminEnableRecovery']) - && 0 === $_POST['adminEnableRecovery'] + && "0" === $_POST['adminEnableRecovery'] ) { $return = \OCA\Encryption\Helper::adminDisableRecovery($_POST['recoveryPassword']); $action = "disable"; |