$_POST["adminEnableRecovery"] is a string

This commit is contained in:
Björn Schießle 2013-05-28 10:49:54 +02:00
parent e1e1c58969
commit 3a76c22372

View file

@ -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";